Commit Graph

119 Commits (eeaffb14b8b85c2bcb0e56f4632e42ebab828b08)

Author SHA1 Message Date
Doug Coleman 21461a1b75 core: selector-for and collector-for are the wrong naming convention--they should be selector-as and collector-as because they take exemplars.
The exemplar is the starting length of the output sequence in collector-as, so add another collector-for-as that takes a seq that we are making a collector for.
2016-05-26 14:36:11 -07:00
Doug Coleman 7f3adf3fb1 sequences.extras: add map-keys, map-values. 2016-05-09 16:28:04 -07:00
Doug Coleman 627f8603bd sequences.extras: add a nullable span-slices word that allows f. 2016-04-10 11:39:50 -07:00
Doug Coleman a15465a9c2 sequences.extras: Allow from to be f in ?<slice> 2016-04-07 13:22:18 -07:00
Doug Coleman 51b70b2050 core: clean up split-lines with subseq-as. clean up subseq/subseq-as/subseq-unsafe/subseq-unsafe-as. 2016-04-05 12:42:38 -07:00
Doug Coleman 783cffe036 sequences.extras: Add a word to ensure that the underlying for slices is the same. Add a more forgiving version of merge-slices called span-slices. 2016-04-04 11:47:46 -07:00
John Benediktsson 1aa8a432c7 sequences.extras: make rotate wrap. 2016-04-04 11:17:24 -07:00
John Benediktsson 4c6511a058 sequences.extras: make rotate! support negative indices. 2016-04-04 11:13:11 -07:00
John Benediktsson 4b5b058c20 sequences.extras: make rotate support negative n. 2016-04-04 11:05:28 -07:00
John Benediktsson dad9110889 sequences.extras: rename back to rotate!. 2016-04-04 10:59:32 -07:00
Doug Coleman fc1b8214f0 sequences.extras: Check if slices overlap or touch. Add a merge-slices word. For efficiency, provide ordered/unordered versions of each word based on whether you know the slices have been swapped or not so they are ordered by from>>. 2016-04-02 15:46:08 -07:00
Doug Coleman b4f979c848 sequences.extras: rename rotate to rotate-headwards and rotate-tailwards. add experimental length- word and addo some slice util words. 2016-04-02 15:17:12 -07:00
Doug Coleman ebc2a8953c sequences.extras: oops. cleanup dumb implementation. 2016-03-29 13:26:02 -07:00
Doug Coleman 3f803e3893 sequences.extras: add map-zip. 2016-03-29 12:58:26 -07:00
Doug Coleman 3c481192a0 sequences.extras: Fix bad rename. (each-from) -> setup-each-from now. Add a unit test for reduce-from. 2016-03-25 09:42:43 -07:00
Doug Coleman d3bc2035a2 factor: remove rest of double paren words. 2016-03-25 03:13:27 -07:00
Doug Coleman 330c7ba156 factor: Removing SLOT: nth/at/global in favor of using change: at for tuple slots named ``at`` and change-at for hashtables.
Redo many FROM: and QUALIFIED: and using lists.
2015-08-12 08:49:02 -05:00
Doug Coleman 00338f62f3 factor: put inline on same line as ; for experimentation 2015-08-10 12:55:27 -05:00
Doug Coleman a2913d6bd7 sequences.extras: Add selector* which saves the output from the quotation
not the original value.
2015-05-21 22:35:23 -07:00
John Benediktsson b366a06c41 use reject instead of [ ... not ] filter. 2015-05-12 18:50:34 -07:00
John Benediktsson 6071ea98f7 sequences: adding reject/reject-as/reject!. 2015-05-12 18:39:19 -07:00
Jon Harper 46fd0b5794 sequences.extras: add start-all and count-subseq for searching/counting all occurences of a subseq 2015-05-10 11:05:16 -07:00
John Benediktsson 501b54ce52 sequences.extras: adding find-last-index. 2015-04-27 21:26:34 -07:00
John Benediktsson d732195dad sequences.extras: removing contains? (probably a bad name or a bad definition). 2015-01-17 10:27:39 -08:00
John Benediktsson a7b782542d sequences.extras: using sift. 2014-12-06 21:20:24 -08:00
John Benediktsson 6fd908da40 use suffix! and append!. 2014-12-03 11:37:34 -08:00
Doug Coleman 56f1b87a6f basis, extra: Use zip-index. 2014-11-08 00:46:30 -08:00
John Benediktsson 7b44637177 sequences.extras: adding count* which returns % of counted items. 2014-06-10 13:06:02 -07:00
John Benediktsson 13a84d1ff1 sequences.extras: adding replicate-into. 2014-02-27 14:31:25 -08:00
John Benediktsson b5eae48068 sequences.extras: remove insert-sorted (can use versions in sorting.extras instead). 2014-01-08 11:50:35 -08:00
John Benediktsson 325d1bac2a sequences.extras: use either?. 2014-01-05 20:28:34 -08:00
John Benediktsson f6bd67ab46 sequences.extras: adding change-last and change-last-unsafe. 2013-10-12 16:40:51 -07:00
John Benediktsson a8691d6dc9 sequences.extras: adding reject!. 2013-09-24 15:21:54 -07:00
John Benediktsson 62be0fde4a sequences.extras: adding reject, "[ not ] compose filter". 2013-09-24 14:52:56 -07:00
John Benediktsson 6de8367223 sequences.extras: adding supremum-by* and infimum-by* that return indices. 2013-09-21 15:22:12 -07:00
John Benediktsson 454bffc14e sequences.extras: adding nth* which is nth from the end. 2013-09-12 12:47:04 -07:00
John Benediktsson 430e73b16c sequences.extras: adding cut-when. 2013-09-05 20:58:36 -07:00
John Benediktsson c9c30c6e6d sequences.extras: adding ?first{2,3,4}. 2013-09-04 20:39:32 -07:00
John Benediktsson 5e25b8b49f sequences.extra: >resizable can't be inline for some reason... 2013-05-30 15:01:34 -07:00
John Benediktsson f628e2a7ad sequences.extras: fix map-concat row-polymorphic problem. 2013-05-30 14:54:29 -07:00
John Benediktsson 84b5e3828f sequences.extras: adding subseq* and safe-subseq. 2013-05-24 11:19:27 -07:00
John Benediktsson 2a846cfff9 sequences.extras: adding index-selector. 2013-05-20 17:43:26 -07:00
John Benediktsson 3ac3c69ab4 sequences.extras: similarly improve map-filter and filter-map. 2013-05-20 17:09:14 -07:00
John Benediktsson 9e2a999af3 sequences.extras: change filter-index to use length of seq not exemplar. 2013-05-20 16:59:03 -07:00
John Benediktsson 2ba006cd71 sequences.extras: adding remove-last. 2013-05-07 06:15:33 -07:00
John Benediktsson fb441ca6dc sequences.extras: adding remove-first. 2013-05-02 08:23:25 -07:00
John Benediktsson e820dfa386 sequences.extras: faster arg-max, arg-min, arg-where, cleanup. 2013-05-01 14:31:14 -07:00
John Benediktsson bcce56f46b sequences.extras: cleanup, make reverse-as faster. 2013-05-01 14:09:34 -07:00
John Benediktsson 9243d39ef5 sequences.extras: adding cut-slice*. 2013-05-01 14:03:58 -07:00
John Benediktsson 7d27d64f36 sequences.extras: cleanup reduce's a little. 2013-04-25 20:48:04 -07:00