We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1126238 + e54915d commit d471090Copy full SHA for d471090
1 file changed
command-interface/util.dylan
@@ -13,14 +13,7 @@ define function or (a :: <boolean>, b :: <boolean>)
13
a | b;
14
end;
15
16
-define function n-spaces (n :: <integer>)
17
- => (spaces :: <string>);
18
- let str = "";
19
- for (i from 0 below n)
20
- str := add(str, ' ');
21
- end;
22
- str;
23
-end function;
+define constant n-spaces = curry(pad, "");
24
25
define function longest-common-prefix (strings :: <sequence>)
26
=> (prefix :: <string>);
0 commit comments