Handbook
Glossary
lreverse ( list -- newlist )
Factor handbook
»
The language
»
Collections
»
Lists
»
Manipulating lists
Prev:
llength ( list -- n )
Next:
lappend ( list1 list2 -- newlist )
Vocabulary
lists
Inputs
list
a
list
Outputs
newlist
a
list
Word description
Reverses the input list, outputting a new, reversed list. The output is a strict cons list.
Definition
IN:
lists
:
lreverse
( list -- newlist )
nil
[
swons
]
foldl
;