js-sdk-stack
Simple stack type.
library
$ Stackinit || : Stack // Create a new stack. $ Stack.pushitem : a : // Pushes a value to the stack. $ Stack.pop : a // Pops a value from the stack. $ Stack.length : Number // The length of the stack. $ Stack.mapf item : a -> b : Stack // Maps each value of the stack returning a new Stack. $ Stack.filterf item : a -> Boolean : Stack // Returns a filtered Stack. $ Stack.reducef acc : b, item : a -> b, initial : b -> b // If no initial value is passed, it will use Stack.
license
See license.md
or visit Unlicense.