fix parser-combinator documentation
parent
93f4088747
commit
11c604d865
|
@ -141,7 +141,7 @@ character code '53'.</p>
|
||||||
<pre class="code">
|
<pre class="code">
|
||||||
(1) : digit-list>number ( list -- number )
|
(1) : digit-list>number ( list -- number )
|
||||||
#! Converts a list of digits to a number
|
#! Converts a list of digits to a number
|
||||||
[ >digit ] map cat dup string-length 0 = [
|
[ >digit ] map >string dup empty? [
|
||||||
drop 0
|
drop 0
|
||||||
] [
|
] [
|
||||||
str>number
|
str>number
|
||||||
|
|
Loading…
Reference in New Issue