Commit graph

15 commits

Author SHA1 Message Date
Jeff Evans
0ddebad851 Adding new subseq-pred-fn macro to create the new form of predicate
function (taking the previous and current item), to preserve backward
compatibility (still allowing predicate functions that only take the
current item).  This macro also takes in a get-truthy-fn as its first
argument, which is a function that marks whether that item in the
sequence should be included in a subsequence.  This is necessary
because the predicate function can now be of any arbitrary form, so
we cannot make any assumption about how the user intends for that
result to be interpreted as a "filter".

Adding SubseqsDynamicPredFn, which works the same as SrangeEndFn, to support backward compatibility

Adding wrapper to take a predicate on [prev current] and turn it into a predicate also taking the current index as the first param

Creating transducer to combine this with the user-supplied predicate function

Adding tests for select and transform

TODO: figure out how to make predicate function handle an open-ended subsequence (ex: end marker not yet seen)
2020-09-25 13:51:24 -05:00
Jeff Evans
789881b3ad
Fix instructions for running tests (#295) 2020-09-14 15:37:16 -04:00
nathanmarz
0bb3ac8440 update cljs test instructions 2017-04-01 04:46:02 -04:00
nathanmarz
cbc6520dbf update cljs testing instructions 2017-03-10 17:09:21 -05:00
Nathan Marz
6b3ea32799 update versions of clj and cljs for tests, new repl script for cljs 2016-10-14 09:52:55 -04:00
Nathan Marz
ea12393efa update cljs test instructions 2016-08-06 10:43:46 -04:00
Nathan Marz
197dcb07ec fix testing instructions for cljs 2016-05-26 09:40:33 -04:00
Nathan Marz
96d5e94a5b fix zipper navigation to stop navigating when right/left/up/down/next navigate nowhere 2016-04-24 13:03:29 -04:00
Nathan Marz
a4e1f1267b zippers working in cljs 2016-04-24 11:10:55 -04:00
Josh Tilles
61f5a0a09a Adapt the test instructions to cljx.
The alias is taken from [the cljx README](20ec61792b (installation)).
2015-10-09 15:08:08 -04:00
Nathan Marz
1f55a0e701 fix tests for cljs 2015-09-24 11:54:20 -05:00
Nathan Marz
7ea4e4ef9c improve docs 2015-09-12 13:17:06 -04:00
Nathan Marz
71b3f6e462 remove lein-cljsbuild since not used at all 2015-06-30 21:09:54 -04:00
Nathan Marz
b7280318cd fix formatting 2015-06-30 20:00:14 -04:00
Nathan Marz
746f4ea859 added notes on running tests 2015-06-30 19:59:39 -04:00