]> gitweb.factorcode.org Git - factor.git/commitdiff
use CONSTANT: in roman
authorDoug Coleman <erg@jobim.local>
Fri, 27 Mar 2009 23:55:43 +0000 (18:55 -0500)
committerDoug Coleman <erg@jobim.local>
Fri, 27 Mar 2009 23:55:43 +0000 (18:55 -0500)
basis/roman/roman.factor

index 71343b723d1da06bd13ed284d83522a2065c1724..4991d5b2436908b3e0eb296fce6abc56699de7f2 100644 (file)
@@ -8,11 +8,11 @@ IN: roman
 
 <PRIVATE
 
-: roman-digits ( -- seq )
-    { "m" "cm" "d" "cd" "c" "xc" "l" "xl" "x" "ix" "v" "iv" "i" } ;
+CONSTANT: roman-digits
+    { "m" "cm" "d" "cd" "c" "xc" "l" "xl" "x" "ix" "v" "iv" "i" }
 
-: roman-values ( -- seq )
-    { 1000 900 500 400 100 90 50 40 10 9 5 4 1 } ;
+CONSTANT: roman-values
+    { 1000 900 500 400 100 90 50 40 10 9 5 4 1 }
 
 ERROR: roman-range-error n ;