Lists

Lists can be created with 2 methods. The first method is to initialize the list using a command, then using the ' function to apply stack commands to the list.

1 3 8 4 enclose ( \_ map ) '

FINAL STACK STATE:
1 3 8 4 [ -1 -3 -8 -4 ]

The second method is similar to the string construction pattern.

[ 1 2 3 4 ]

FINAL STACK STATE:
[ 1 2 3 4 ]

Objects

Objects can be constructed somewhat similarly to lists and strings.

{ 1 \a : 2 \b : }

Note that the colons are actual commands that create key-value pairs within the object.

results matching ""

    No results matching ""