Commit Graph

317 Commits (cbdd559a759b5aef9b1c97d8b69a29e159d14ae1)

Author SHA1 Message Date
John Benediktsson f2deb82829 core: removing unnecessary method stack effects. 2020-09-09 15:00:53 -07:00
John Benediktsson 6be39382a3 sequences: adding cartesian-find. 2019-12-13 19:20:27 -08:00
John Benediktsson c6e14ce3ca sequences: making copy-state indices integers. 2019-05-19 15:59:31 -07:00
Doug Coleman 9f213f96f6 core: Add the shuffler words but without primitives.
The nipd branch slowed bootstrap by a minute, this patch does not.

sorry about changing the fjsc line endings...
2018-06-19 22:52:58 -05:00
John Benediktsson 01f7f6b76c sequences: moving none? to core. 2018-02-14 11:23:03 -08:00
John Benediktsson 37794a326c sequences: rename setup-each to (each).
...to match (each-from), (2each), and (3each), etc.
2017-10-24 17:22:55 -07:00
John Benediktsson 26b7b20622 sequences: fix map-reduce to have ..a on the stack for the first call. 2017-10-23 18:01:15 -07:00
Doug Coleman 7a703658f1 sequences: Remove start for real in favor of subseq-start.
Update a usage of start that was masked by the ALIAS:

Compatibility/migration is a .99 feature.
2017-06-02 17:41:10 -05:00
Doug Coleman e189954ecc core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota-tuple ... ; 2017-06-02 11:57:05 -05:00
Doug Coleman 88bff3a034 sequences: Add start as an alias for subseq-start, start* aliasing subseq-start-from. 2017-06-01 14:55:15 -05:00
Doug Coleman c5b563ed09 factor: Rename start -> subseq-start, start* -> subseq-start-from.
I also removed aliases for start/end from interval-maps and interval-sets and added a comment. I don't think it's any less clear what's going on.
2017-06-01 14:45:54 -05:00
Doug Coleman 7c7bb93c55 factor: Rename GENERIC# to GENERIC#:.
Fixes #1670.
2017-06-01 13:58:58 -05:00
John Benediktsson 44da4ed4dd sequences: fix filter! to allow stack arguments to be used by the quot. 2017-03-05 14:09:03 -08:00
John Benediktsson b51617db16 sequences: simplify (map-find). 2017-02-07 19:42:58 -08:00
John Benediktsson baaa06278c Revert "sequences: swap stack arguments for start/start*/subseq?."
This reverts commit 63b0593824.
2017-01-21 07:20:14 -08:00
John Benediktsson 63b0593824 sequences: swap stack arguments for start/start*/subseq?.
It is more natural to be ( seq subseq -- ? ).
2017-01-20 22:49:53 -08:00
John Benediktsson f0251cb2ad sequences: remove (indices). 2016-12-28 16:40:27 -08:00
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 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 20aadd5688 core: rename some double paren words. 2016-03-25 03:13:27 -07:00
Jon Harper cb6ddb1735 rename math.statistics:cum-map to sequences:accumulate* 2016-03-08 13:41:54 -08:00
John Benediktsson 59caf874a3 syntax: removing #! as a comment character.
We don't need two types of comments and shebang (#!) is handled
natively by the lexer, so the original reason for #! is not valid.
2015-09-09 18:28:08 -07:00
John Benediktsson e477f6996f Fix comments to be ! not #!. 2015-09-08 16:15:10 -07:00
John Benediktsson ceb75057da change ERROR: words from throw-foo back to foo. 2015-08-13 16:13:05 -07:00
Doug Coleman 02008979d9 factor: Change ERROR: foo ; to define ``throw-foo`` instead of having ``foo`` throw implicitly. The old ``foo`` still throws implicitly because this is a big change to get right in one patch, but it should be removed soon. 2015-08-12 15:26:18 -05:00
John Benediktsson b82d866340 sequences: bring back check-length. 2015-07-20 09:58:12 -07:00
John Benediktsson 3ea9f09f6a fix some sets:members. 2015-07-20 09:32:31 -07:00
John Benediktsson fb688cc08b sequences: integer length for repetition, use English. 2015-07-17 17:42:41 -07:00
John Benediktsson 17386d0608 Revert "sequences: simplify find-from and find-last-from."
This reverts commit 903b8eec0b.
2015-07-17 16:41:56 -07:00
John Benediktsson 743928ae7d sequences: use check-length to force integer partial dispatch in iteration. 2015-07-17 13:59:33 -07:00
John Benediktsson 9c4b3e7e43 sequences: define a 2each-from, use each-from more. 2015-07-17 13:40:01 -07:00
John Benediktsson 903b8eec0b sequences: simplify find-from and find-last-from. 2015-07-17 13:26:43 -07:00
John Benediktsson 9fad4187f3 sequences: adding a subseq-unsafe that doesn't check slice bounds. 2015-07-17 12:14:33 -07:00
John Benediktsson 94cddbe927 sequences: integer slots in slice, don't store reason in slice-error. 2015-07-16 15:35:03 -07:00
John Benediktsson d07564532d sequences: make concat-as inline and don't special-case empty. 2015-06-06 09:28:00 -07:00
John Benediktsson 2c3492a916 minor cleanup to some docs. 2015-05-13 16:09:14 -07:00
John Benediktsson 6071ea98f7 sequences: adding reject/reject-as/reject!. 2015-05-12 18:39:19 -07:00
John Benediktsson b377ea313c assocs: moving map-index back to sequences, change zip and zip-index to make alists. 2014-11-11 18:13:01 -08:00
Doug Coleman 7cfa9d9518 assocs: Make map-index-as support seq or assoc exemplars and move map-index, map-index-as to assocs because they need to use new-assoc. Make zip-index-as support assoc exemplars. Fix up docs and tests.
assocs.extras: Remove zip-as and move tests to assocs.
2014-11-08 18:18:00 -08:00
Doug Coleman 0a0895f90f assocs: Add zip-index, zip-index-as and docs/tests.
sequences: Add map-index-as for symmetry and docs/tests.
2014-11-08 00:39:38 -08:00
John Benediktsson f3a8546b23 core: get rid of some unnecessary wrappers. 2014-11-02 20:16:22 -08:00
John Benediktsson 0a93877d4b sequences: make sum-lengths generic. 2014-06-02 08:40:38 -07:00
John Benediktsson 9c1dd0ad58 sequences: faster interleave. 2014-03-12 12:51:32 -07:00
John Benediktsson 47b96f6891 Revert "sequences: require integers for slice and repetition."
This reverts commit 5e87cdb3a9b5885c6648ffaf6e5e9a2edc5fd200.
2014-03-12 07:27:39 -07:00
John Benediktsson 550118e608 sequences: require integers for slice and repetition. 2014-02-21 08:36:31 -08:00
John Benediktsson ab4a058b2c sequences: implement sum on repetitions. 2014-02-09 08:05:26 -08:00
John Benediktsson 64e56f65ef sequences: faster head? and tail?. 2014-02-06 20:49:39 -08:00
John Benediktsson d87a1da62f sequences: change trim-head to not call length unless it needs to. 2014-01-08 10:19:26 -08:00
John Benediktsson 1d5a598929 sequences: don't allow negative repetitions. 2013-08-05 09:56:44 -07:00
John Benediktsson cee38e1f40 sequences: change filter-as to allocate length of seq not exemplar. 2013-05-20 16:22:23 -07:00