Commit Graph

61 Commits (cbdd559a759b5aef9b1c97d8b69a29e159d14ae1)

Author SHA1 Message Date
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 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
Doug Coleman 1f7bf0d6ab splitting: string-lines is optimized for strings. revert my previous slowdown of 50% or so. add a note so this won't happen again. oops. 2016-04-05 21:17:43 -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
John Benediktsson e8b62d41c3 splitting: fix using. 2016-03-13 17:01:58 -07:00
John Benediktsson ef2ae9c360 splitting: make string-lines more correctly handle line terminator. 2016-03-13 15:46:04 -07:00
John Benediktsson 573ac9c9e9 splitting: use unsafe in split-when, simplify split-indices. 2015-07-17 12:14:33 -07:00
Björn Lindqvist 422c4b2051 splitting: new word split-indices, it's useful compiler.cfg.scheduling so let's add it to the splitting vocab too 2014-11-22 17:31:38 -08:00
John Benediktsson 04d83f9f48 splitting: simplify a bit. 2013-10-12 16:41:12 -07:00
John Benediktsson 6497dd0fe4 splitting: cleanup duplicate code. 2013-06-25 15:17:44 -07:00
John Benediktsson 2ca5b739e0 splitting: removing split* to extras. 2013-04-01 09:14:01 -07:00
John Benediktsson 042d86846e splitting: change split* to preserve (separately) the separators. 2013-03-31 16:05:30 -07:00
John Benediktsson ae4e53fd5b splitting: adding split-slice and split*-slice for completeness. 2013-03-27 16:29:13 -07:00
John Benediktsson f285d4db3f splitting: add split*-when-slice and change to not use make. 2013-03-27 16:19:56 -07:00
John Benediktsson 6fd25b6668 splitting: adding split1-when-slice and split-when-slice. 2013-03-27 16:00:16 -07:00
John Benediktsson 872e3c4e83 splitting: string-lines docs say it returns strings, so do that. 2013-03-24 19:45:29 -07:00
Doug Coleman ef5c7cfa50 splitting: Support SBUF" " with split-lines. Fixes #575. Thanks @mrjbq7
for the patch.
2013-03-23 14:00:29 -07:00
John Benediktsson 5487480126 core: cleanup USING lists. 2013-03-05 10:34:47 -08:00
Doug Coleman 10e74c6066 sequences: Add join-as, which takes an exemplar. Move split-subseq and replace from unicode.case to splitting and fix an infinite loop with split-subseq. Add docs/tests. 2013-01-03 16:44:25 -08:00
John Benediktsson f60513c053 splitting: making split inline. 2012-08-06 15:08:16 -07:00
John Benediktsson 9d2a1a6b7c splitting: crlf? was unnecessary. 2012-07-30 11:26:38 -07:00
John Benediktsson da692ff7ec splitting: slightly faster string-lines. 2012-07-13 20:26:07 -07:00
John Benediktsson 646e9db251 splitting: string-lines is 30-70% faster. 2012-07-13 18:24:45 -07:00
John Benediktsson 55b127f96b splitting: adding split*, a variant that keeps elements we split upon. 2012-06-20 19:57:11 -07:00
John Benediktsson d37e5192de splitting: fixing split1-last. 2012-04-27 08:48:57 -07:00
John Benediktsson 5e16810075 using reverse! when possible. 2012-04-25 20:09:36 -07:00
John Benediktsson 94b73d9371 splitting: adding split1-when. 2012-04-18 15:55:15 -07:00
Doug Coleman 3ba787b277 core/basis: trim down using lists 2011-11-30 23:15:42 -08:00
John Benediktsson 3c1356bf69 Adding stack effects. 2011-09-23 17:46:40 -07:00
Slava Pestov 5cbf730517 splitting: fix stack effect declaration of (split) 2010-11-06 17:50:39 -07:00
Joe Groff 83c81b288f polymorphize splitting private combinators 2010-03-07 18:07:59 -08:00
Joe Groff 2352792502 factor "split-when" (split on predicate) from "split" 2009-11-06 16:29:33 -06:00
Doug Coleman 14ef1649d4 add if-zero/when-zero/unless-zero to core/ and update usages 2009-08-11 17:59:40 -05:00
Doug Coleman 407377fc98 rename peek -> last and update all usages 2009-05-25 16:38:33 -05:00
Doug Coleman 3722c0ad62 move some words to private vocabs 2009-05-25 15:35:50 -05:00
Doug Coleman 0ad6d1fb7b add a few usages of iota, remove most 1+ and 1- from core 2009-05-01 19:58:24 -05:00
Slava Pestov 4117430762 string-lines throws an error if input is not a string 2009-02-09 00:25:46 -06:00
Slava Pestov 669548e62e Clean up some usages of tuck, and add Joe's curried cleave/spread/apply combinators to kernel vocabulary 2009-02-02 13:43:54 -06:00
Slava Pestov 4b4d93dddd Move at-default from unicode.case to assocs, move 2cache from classes.algebra to assocs, clean up some code to no longer use -rot, rot, pick 2009-01-20 15:27:14 -06:00
Slava Pestov e6aa33ac12 Add new intersects? word and use it in a few places instead of intersect empty? 2009-01-12 01:51:38 -06:00
Slava Pestov a4d9cdfeb3 Refactor all usages of >r/r> in core to use dip, 2dip, 3dip
Non-optimizing compiler now special-cases dip, 2dip, 3dip following a
literal quotation: this allows us to break the dip/slip meta-circle
without explicit calls to >r/r>
2008-11-23 02:44:56 -06:00
Doug Coleman 26cb48b0ab rename last-slice1 to slice1-last. add slice1-slice and slice1-last-slice, docs, and tests 2008-11-22 19:59:43 -06:00
Slava Pestov c19f2257f4 Fix permission bits 2008-10-02 08:34:49 -05:00
Slava Pestov 44f53de164 Move make to its own vocabulary, remove fry _ feature 2008-09-10 20:07:00 -05:00
Slava Pestov ac2bf0b87d Adding inline recursive declarations 2008-07-18 19:22:59 -05:00
Slava Pestov 29fa4a8a54 assoc-find is no longer generic 2008-06-09 05:22:21 -05:00
Slava Pestov dc1a423f88 Document clumps 2008-05-24 21:49:48 -05:00
Doug Coleman fd531c1a31 rename butlast to but-last 2008-05-07 01:38:34 -05:00
Doug Coleman 01f20cf32d update core to use butlast, butlast-slice 2008-05-06 12:36:49 -05:00