Commit Graph

168 Commits (revert-2214-feature-commandline-documentation)

Author SHA1 Message Date
John Benediktsson 81f2e9a0a7 sequences.extras: adding extract!.
It's similar to reject! but returns the items that were removed.
2019-06-28 11:27:23 -07:00
Doug Coleman 9c29759775 sequences.extras: Allow row variables in loop>array etc. 2018-12-16 13:30:55 -06:00
Doug Coleman f77d46f0c8 imap: Add a word to list all folders and fix a couple issues.
- Fix a bug where the regex assumes double-quotes around a string but Outlook doesn't put them.
- Fix all the \\ escapes in the regexps to look a little better.
- Cleaner looping for reading emails.

! Example query to get some spams
imap-settings get [
  "[Gmail]/Spam" select-folder
  "ALL" "" search-mails 10 head
  "(BODY[1] BODY[HEADER.FIELDS (SUBJECT TO FROM CC BCC)])" fetch-mails
] with-imap-settings
2018-11-21 19:27:42 -06:00
John Benediktsson 6e89e4ecab sequences.extras: fix bug in count-head, add some tests. 2018-07-06 08:07:11 -07:00
Doug Coleman 000f3eab07 sequences.extras: Add count-head and count-tail 2018-07-04 18:32:19 -05: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 ca3b44b39b sequences.extras: fix test case for interleaved/join-with. 2018-02-16 14:48:00 -08:00
John Benediktsson 2938c9b017 sequences.extras: making evens/odds mutable sequences. 2018-02-16 09:21:05 -08:00
John Benediktsson a4dcc12b98 sequences.extras: rename join-with to interleaved. 2018-02-16 08:42:07 -08:00
John Benediktsson 7203df0152 sequences.extra: make evens/odds virtual sequences. 2018-02-16 08:40:57 -08:00
John Benediktsson 2d13cecc22 sequences.extras: fix evens/odds to not cache length. 2018-02-16 08:25:57 -08:00
John Benediktsson fb0a6c6c5e sequences.extras: adding join-with-as, test with strings. 2018-02-15 16:56:37 -08:00
John Benediktsson 112d374aed sequences.extras: faster join-with.
If we initialize the array with the glue, then we just set every
other element from the input sequence.
2018-02-15 15:03:28 -08:00
John Benediktsson 58e77d10f9 sequences.extras: adding join-with. 2018-02-15 14:46:19 -08:00
John Benediktsson 6890ec3fe4 extra: remove some unneeded IN: in -tests. 2018-02-14 17:01:11 -08:00
John Benediktsson 01f7f6b76c sequences: moving none? to core. 2018-02-14 11:23:03 -08:00
Björn Lindqvist 603354a02e sequences.extras: this formulation of arg-max/min should be better 2018-02-08 19:48:08 +01:00
John Benediktsson 8d58f60bf9 sequences.extras: adding 3each-from and 3map-reduce. 2017-10-24 17:25:26 -07:00
Doug Coleman 01aab7c884 Factor: Rename <enum> to <enumerated> to not confuse with ENUM:s 2017-07-03 12:47:19 -07:00
Alexander Iljin fff7bc72a4 sequences.extras: add ?supremum and ?infimum 2017-06-25 16:26:45 -07:00
Alexander Iljin 2ffa446f5b *-docs: replace double spaces with single spaces
Code examples and other places where multiple spaces were used to align
text were left intact.
2017-06-05 13:16:07 -07:00
Doug Coleman 48344ab55c factor: last iota -> <iota> fix. 2017-06-02 17:39:40 -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 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
John Benediktsson 369f5b6d13 sequences.extras: additional tests for take-while and drop-while. 2017-01-26 22:09:13 -08:00
John Benediktsson e462f85c66 sequences.extras: whoops, fix tests. 2017-01-26 12:07:33 -08:00
John Benediktsson a8a94c3960 sequences.extras: experimenting with take-while and drop-while. 2017-01-26 12:05:09 -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 d145548c44 sequences.extras: fix map-concat to be row-polymorphic. 2016-12-29 12:35:39 -08:00
John Benediktsson b333343e2b sequences.extras: little more cleanup. 2016-12-29 12:29:09 -08:00
John Benediktsson dfdf1f19cc sequences.extras: fix doc for find-all. 2016-12-29 12:04:29 -08:00
John Benediktsson 94da542acd sequences.extras: removing a couple words that aren't used. 2016-12-29 12:03:16 -08:00
John Benediktsson a153d9f6ad sequences.extras: simpler find-all and a test. 2016-12-29 09:20:32 -08:00
Jon Harper 6bdb62d142 docs: typos: occurence -> occurrence
Didn't fix the one at extra/webapps/fjsc/www/termlib/readme.txt
because it's from upstream
2016-10-28 09:32:51 -07:00
John Benediktsson d015f028db sequences.extras: adding pad-center. 2016-08-03 11:25:06 -07: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 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