mori
mori copied to clipboard
ClojureScript's persistent data structures and supporting API from the comfort of vanilla JavaScript
http://swannodette.github.io/mori/#sortedSet What determines sort order?
http://swannodette.github.io/mori/#set What determines uniqueness of elements?
http://swannodette.github.io/mori/#repeatedly Return a lazy **of** sequence of => Return a lazy sequence of
http://swannodette.github.io/mori/#repeat Return a lazy **of** sequence of => Return a lazy sequence of
http://swannodette.github.io/mori/#iterate Creates **a** lazy sequences of => Creates lazy sequences of
http://swannodette.github.io/mori/#takeWhile ``` a = [0,1,2,3,4,5,6,7,8,9] mori.takeWhile ((n) -> n < 5), r // => (0 1 2 3 4) ``` ((n) -> n < 5), **r** => ((n) -> n...
http://swannodette.github.io/mori/#take colletion => colle**c**tion ``` var a = mori.range(); // infinite sequence mori.take(10, r); // => (0 1 2 3 4 5 6 7 8 9) ``` (10, **r**) =>...
http://swannodette.github.io/mori/#reduce ``` var a = mori.range(10); mori.reduce(mori.sum, 0, r); // => 45 ``` (mori.sum, 0, **r**) => (mori.sum, 0, **a**)
I was looking for a way to validate mori types with React, but I couldn't find a library. So I threw together a package to deal with mori propTypes: https://github.com/farism/react-mori-proptypes
Aside from simple serialization support, this would make Mori work with redux devtools.