Package net.fortytwo.ripple.libs.stack

Class Summary
At Consumes a list and an index n and produces the nth item in the list, where the first item in the list has an index of 1.
Cat A primitive function which consumes two lists and produces the concatenation of the two lists.
Cons A primitive which consumes an item and a list, prepends the item to the list, then produces the resulting list.
Drop A primitive which consumes an item and a list, prepends the item to the list, then produces the resulting list.
Dup A primitive which pushes a copy of the topmost item on the stack to the head of the stack.
Dupd A primitive which pushes a copy of the second-to-topmost item on the stack to the head of the stack.
Empty A primitive which consumes a list and yields true if the list is empty, otherwise false.
Has A primitive which consumes a list and an item and produces a Boolean value of true if the item is contained in the list, otherwise false.
In A primitive which consumes an item and a list and produces a Boolean value of true if the item is contained in the list, otherwise false.
Max A primitive which consumes a list and produces the greatest item in the list.
Min A primitive which consumes a list and produces the least item in the list.
Of Consumes an index n and a list and produces the nth item in the list, where the first item in the list has an index of 1.
Pop A primitive which removes the topmost item from the stack.
Popd A primitive which removes the second-to-topmost item from the stack.
Rolldown A primitive which permutes the first, second and third items on the stack such that (...
Rolldownd A primitive which permutes the second, third and fourth items on the stack such that (...
Rollup A primitive which permutes the first, second and third items on the stack such that (...
Rollupd A primitive which permutes the second, third and fourth items on the stack such that (...
Rotate A primitive which permutes the first, second and third items on the stack such that (...
Rotated A primitive which permutes the second, third and fourth items on the stack such that (...
Self A primitive function which has no effect on the stack.
Size A primitive which consumes a list and produces the length of the list as an integer.
StackLibrary A collection of stack manipulation primitives.
Swap A primitive which swaps the two topmost items on the stack.
Swapd A primitive which swaps the second- and third-to-topmost items on the stack.
Swons A primitive which consumes a list an an item, prepends the item to the list, and produces the resulting list.
Take A primitive which consumes an item and a list, prepends the item to the list, then produces the resulting list.
Uncons A primitive which consumes a list and produces the first item in the list, followed by the rest of the list.
Unswons A primitive which consumes a list and produces the rest of the list, followed by the first item in the list.
 



Copyright © 2007-2011 fortytwo.net. All Rights Reserved.