aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/radix.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/radix.spad.pamphlet')
-rw-r--r--src/algebra/radix.spad.pamphlet4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/algebra/radix.spad.pamphlet b/src/algebra/radix.spad.pamphlet
index 7cee785e..5ae58510 100644
--- a/src/algebra/radix.spad.pamphlet
+++ b/src/algebra/radix.spad.pamphlet
@@ -174,7 +174,9 @@ RadixExpansion(bb): Exports == Implementation where
intgroup(li: List I): OUT ==
empty? li => error "intgroup needs non-null list"
- empty? rest li => intToExpr first(li)
+ empty? rest li =>
+ abs bb <= 36 intToExpr first(li)
+ first(li)::OUT
abs bb <= 10 => hconcat [i :: OUT for i in li]
abs bb <= 36 => hconcat [intToExpr(i) for i in li]
blankSeparate [i :: OUT for i in li]