Skip to content
Jayson Harshbarger edited this page Apr 11, 2016 · 3 revisions

Core Internal Words

nop

no op ( -> )

eval

evalute quote or string ( [A] -> a )

drop

drops the item on the bottom of the stack ( x -> )

swap

swaps the items on the bottom of the stack ( x y -- y x )

dup

duplicates the item on the bottom of the stack ( x -- x x )

unstack

push items in a quote to the stack without evaluation ( [A B C] -> A B C)

length

Outputs the length of the Array, string, or object. ( {seq} -> {number} )

slice

a shallow copy of a portion of an array or string ( seq from to -> seq )

splitat

splits a array or string ( seq at -> seq )

indexof

returns the position of the first occurrence of a specified value in a sequence ( seq item -> number )

zip

zipinto

(

pushes a quotation maker onto the stack

)

collects stack items upto the last quote marker

[

pushes a quotation maker onto the stack, increments depth

]

decrements depth, collects stack items upto the last quote marker

{

pushes a quotation maker onto the stack

}

collects stack items upto the last quote marker, converts to an object

template

converts a string to a string template

sleep

wait x milliseconds ( x -> )

fetch

fetch a url as a string ( {url} -> {string} )

Clone this wiki locally