Commit Graph

367 Commits (4bf692e414337e21d4e33c469fa90b1771184fb0)

Author SHA1 Message Date
Doug Coleman e145947ee3 iota: iota vs iota-tuple. Sorry...for the tools to work! 2013-03-23 16:36:22 -07:00
John Benediktsson e2e8b77297 sequences: require non-negative-integer for iotas. 2013-03-22 16:05:00 -07:00
John Benediktsson d368f16afd sequences: use each-integer and all-integers? instead of iota. 2013-03-22 14:23:08 -07:00
Doug Coleman 03c9a2a908 sequences: Keep all arguments for immutable error. 2013-03-21 02:46:39 -07:00
John Benediktsson 950dd4fc72 sequences: inline last-unsafe. 2013-03-14 18:41:44 -07:00
Doug Coleman 2268a35115 sequences: More efficient longest and shortest by moving infimum-by/supremum-by into core. 2013-03-11 18:35:53 -07:00
Doug Coleman dfe6a811e5 sequences: Add some short useful factors. Clean up the use of longest. 2013-03-11 17:47:52 -07:00
John Benediktsson d75b5cd7d6 sequences: add a copy-unsafe that can be used sometimes. 2013-03-06 14:06:33 -08:00
Doug Coleman ef4e3d054f sequences: Rename slice-error the word to check-slice-error, make slice-error the TUPLE: an ERROR: 2013-03-05 06:57:40 -08:00
John Benediktsson d0adf11f5d sequences: define a single "?set-nth" that is used. 2013-02-20 10:42:21 -08:00
Doug Coleman 9040ed25f2 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 14cca7e142 Revert "sequences: change map-integers to require fixnum length."
This reverts commit 0f71db0c97.
2012-10-22 11:13:56 -07:00
John Benediktsson 0f71db0c97 sequences: change map-integers to require fixnum length. 2012-10-22 10:32:27 -07:00
Doug Coleman 99782d4f53 kernel: Add 4dup, 4drop, and 4cleave. 2012-10-22 09:47:34 -07:00
John Benediktsson 061a4c6dc9 sequences: change stack effect docs for map-reduce to be more consistent. 2012-09-27 11:14:21 -07:00
John Benediktsson 50ffb0c2d1 update some docs that should use $quotation. 2012-09-27 11:09:17 -07:00
John Benediktsson af796f0807 sequences: fix docs to use "dst" as a convention. 2012-09-19 16:45:28 -07:00
John Benediktsson 11650d89ad sequences: adding second-, third-, and fourth- unsafe words. 2012-09-19 10:33:51 -07:00
John Benediktsson 5854fb8094 sequences: bit faster binary-reduce. 2012-09-10 16:53:10 -07:00
John Benediktsson 89d37a4b0b sequences: minor formatting improvements. 2012-09-05 16:21:47 -07:00
John Benediktsson a669234645 sequences: faster "flip", looks at each element only once. 2012-09-05 16:02:20 -07:00
John Benediktsson 462b216006 sequences: make nth3-unsafe simpler. 2012-09-05 10:52:44 -07:00
John Benediktsson cf8f263fe6 sequences: faster binary-reduce. 2012-09-05 09:32:54 -07:00
John Benediktsson deced177a8 sequences: better "halves". 2012-09-04 19:57:45 -07:00
John Benediktsson 43a40368c2 sequences: less bounds checking in binary-reduce. 2012-09-04 19:57:45 -07:00
John Benediktsson b640610356 sequences: some minor performance improvements. 2012-08-30 11:33:57 -07:00
John Benediktsson de891028cb sequences.extras: moved 2each-index to extras for now. 2012-08-09 16:36:35 -07:00
John Benediktsson 608198c670 sequences: adding 2each-index. 2012-08-08 20:08:08 -07:00
Doug Coleman 198931cd72 sequences: Change bounds-check? to be generic on integer so that floating points can't index into sequences. Fixes #582. 2012-07-31 08:36:34 -07:00
John Benediktsson cf5627b438 sequences: improve change-nth, if nth was successful, set-nth can be unsafe. 2012-07-30 11:26:32 -07:00
John Benediktsson 7e6d8e528c sequences: slightly faster sequence=. 2012-07-27 21:30:03 -07:00
John Benediktsson 2ce4b091af sequences: minor docs fixes. 2012-07-27 21:04:37 -07:00
John Benediktsson 30dfa700ba sequences: slightly faster ?last. 2012-07-27 09:12:29 -07:00
Doug Coleman a6c3ddf691 sequences: Fix tests that broke when nth could only be integers. Undo integer>fixnum in iota nth. See bug #582. 2012-07-25 22:17:24 -07:00
Doug Coleman 92eee23e48 core: Use integer>fixnum instead of >fixnum for ``nth`` and other sequence operations. Fixes #581. 2012-07-25 18:24:43 -07:00
John Benediktsson e654e4afd9 Using "same?" in more places. 2012-07-21 10:22:44 -07:00
John Benediktsson 4f2b406203 sequences: fix typo in docs for shorten. 2012-07-20 09:04:51 -07:00
John Benediktsson 7c623cad28 sequences: faster last / set-last. 2012-07-18 12:31:53 -07:00
John Benediktsson f543f8b4a1 sequences: prepend-as should be inlined. 2012-07-16 11:54:32 -07:00
John Benediktsson 355e140785 sequences: un-inline prepend to fix "cannot call" error. 2012-05-29 15:58:19 -07:00
John Benediktsson a63bd9e2ba sequences: change prepend to return type of first sequence to match append. 2012-05-29 11:59:03 -07:00
John Benediktsson 0d4bd75492 sequences: adding find-index-from. 2012-04-27 13:41:47 -07:00
John Benediktsson 33f741ec2e cleanup some lint warnings. 2012-04-18 17:46:01 -07:00
John Benediktsson 5e524e82e3 sequences: fixing "Cannot apply 'call' to a run-time computed value" error in map-reduce and 2map-reduce. 2012-04-17 19:04:10 -07:00
John Benediktsson d47d2e5a5d sequences: make map-reduce 5-20% faster, and 2map-reduce 3-5% faster. 2012-04-17 17:58:19 -07:00
John Benediktsson 52ee9c2516 sequences: adding a test for map-reduce. 2012-04-16 17:52:21 -07:00
Doug Coleman c3dcf43e03 core/basis: trim down using lists 2011-11-30 23:15:42 -08:00
Joe Groff 86d5e8529c random: go faster
* Use int <ref> instead of 4 >le
* Inline sequences:push-all
* Types, hints, inlines
Re: #328
2011-11-15 20:45:16 -08:00
Joe Groff 65c17f7ace slice boa -> <slice-unsafe>
If you didn't define it, don't boa it
2011-11-09 19:22:09 -08:00
Joe Groff 53d027928c io: more hot-rodding for #376
* Change the interface of read-into to return a slice and an eof boolean separately so the compiler can optimize the slice.
* Add an each-stream-block-slice combinator that behaves like each-block but reuses a preallocated buffer for every iteration.
* Pull some strings in the stream-read-into implementation to further improve type propagation and bounds check elimination.
2011-11-09 17:22:01 -08:00