aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/string.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/string.spad.pamphlet')
-rw-r--r--src/algebra/string.spad.pamphlet3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/algebra/string.spad.pamphlet b/src/algebra/string.spad.pamphlet
index b336d9a6..82b60fb4 100644
--- a/src/algebra/string.spad.pamphlet
+++ b/src/algebra/string.spad.pamphlet
@@ -100,6 +100,7 @@ Character: OrderedFinite() with
import %i2c: NNI -> % from Foreign Builtin
import %ccst: String -> % from Foreign Builtin
import %s2c: String -> % from Foreign Builtin
+ import %c2s: % -> String from Foreign Builtin
a = b == %ceq(a,b)
a < b == %clt(a,b)
@@ -132,7 +133,7 @@ Character: OrderedFinite() with
alphanumeric? c == member?(c, alphanumeric())
latex c ==
- concat("\mbox{`", concat(new(1,c)$String, "'}")$String)$String
+ concat("\mbox{`", concat(%c2s c, "'}")$String)$String
char(s: String) ==
%s2c s