mirror of
https://github.com/flynx/Slang.git
synced 2025-11-01 03:50:10 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
402466f11a
commit
de9737ec55
@ -603,17 +603,18 @@ var BOOTSTRAP = [
|
|||||||
'',
|
'',
|
||||||
' [ 1 2 3 ] [ 1 add ] map',
|
' [ 1 2 3 ] [ 1 add ] map',
|
||||||
' -> [ 2 3 4 ]',
|
' -> [ 2 3 4 ]',
|
||||||
|
'',
|
||||||
' the returned value (stack) of the input block is put into the result',
|
' the returned value (stack) of the input block is put into the result',
|
||||||
' block, this enables us to both remove (empty stack) and expand (more',
|
' block, this enables us to both remove (empty stack) and expand (more',
|
||||||
' than one value) the resulting list...',
|
' than one value) the resulting list...',
|
||||||
'',
|
'',
|
||||||
' [ 1 2 3 4 ] [ dup ] map',
|
' [ 1 2 3 4 ] [ dup ] map',
|
||||||
' -> [ 1 1 2 2 3 3 4 4 ]',
|
' -> [ 1 1 2 2 3 3 4 4 ]',
|
||||||
|
'',
|
||||||
' [ 1 2 3 4 ] [ dup 2 gt ? [ ] else [ . ] ] map',
|
' [ 1 2 3 4 ] [ dup 2 gt ? [ ] else [ . ] ] map',
|
||||||
' -> [ 3 4 ]',
|
' -> [ 3 4 ]',
|
||||||
'',
|
'',
|
||||||
|
'',
|
||||||
' this enables us to construct words like filter, which makes the code',
|
' this enables us to construct words like filter, which makes the code',
|
||||||
' in the last example more readable:',
|
' in the last example more readable:',
|
||||||
'',
|
'',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user