\__ __ \_______ \______ \___ \_______ \__ \__ \_______ | |_| || || _ | | | | || |_| || | | || _ || | || | | ____ | ___|| ||_ _| | || | | || |_||_ | | |____| | |___ | | | | | || |_| || __ || | | ___| | | | | | ||_|| || || | | || | | |___ | _ | | | |_| |_||_______||___| |_||___| |_______||__| |__| |___|
;;const v1 = ;const v2 = v1::;const v3 = ;v2::; // => true
Using babeljs everyone can use this syntax.
Also, copy the
.babelrc file, in order to enable the required language features in
This effort is inspired by trine
npm install --save mori-ext
Review the spec (the spec is as of this moment not complete, but it's on its way)
mori-ext's API is mostly based on collections being the first argument to
mori functions, i.e.
;;const coll = mori;mori;// is equivalent tocoll::;// andmori;// is equivalent tocoll1::;
However, not all functions operate on a single collection, or even, on collections at all, so some consideration has been taken into account, e.g.
;;// mapcat::;// => ('a' 'a1' 'b' 'b2' 'c' 'c3')// cons (converts collection into seq)1::// => (1 2 3)
isList isSeq isVector isMap isSet isCollection isSequential isAssociative isCounted isIndexed isReduceable isSeqable isReversible
list vector hashMap set sortedSet range queue
conj into assoc dissoc distinct empty get getIn hasKey find nth last assocIn updateIn count isEmpty peek pop zipmap reverse
Hash Map Operations
keys vals merge
disj union intersection difference isSubset isSuperset
first rest seq cons concat flatten intoArray each map mapcat filter remove reduce reduceKV take takeWhile drop dropWhile some every sort sortBy interpose interleave iterate repeat repeatedly partition partitionBy groupBy
primSeq identity constantly inc dec sum isEven isOdd comp juxt knit pipeline partial curry fnil toClj toJs