Handbook
Glossary
basic ( n -- str )
Vocabulary
math
.
text
.
french
.
private
Inputs
n
an
object
Outputs
str
an
object
Definition
USING:
assocs
combinators
kernel
math
sequences
;
IN:
math.text.french.private
:
basic
( n -- str )
{
{
[
dup
literals
key?
]
[
literals
at
]
}
{
[
dup
0
<
]
[
abs
basic
"moins "
swap
append
]
}
{
[
dup
60
<
]
[
smaller-than-60
]
}
{
[
dup
80
<
]
[
smaller-than-80
]
}
{
[
dup
100
<
]
[
smaller-than-100
]
}
{
[
dup
1000
<
]
[
smaller-than-1000
]
}
{
[
dup
2000
<
]
[
smaller-than-2000
]
}
{
[
dup
1000000
<
]
[
smaller-than-1000000
]
}
[
decompose
]
}
cond
;