John Benediktsson
c1850f416a
sequences: fix docs to use "dst" as a convention.
2012-09-19 16:45:28 -07:00
John Benediktsson
3decf30626
sequences: adding second-, third-, and fourth- unsafe words.
2012-09-19 10:33:51 -07:00
John Benediktsson
62604aeb4b
sequences: bit faster binary-reduce.
2012-09-10 16:53:10 -07:00
John Benediktsson
1a86af31f1
sequences: minor formatting improvements.
2012-09-05 16:21:47 -07:00
John Benediktsson
6f66173784
sequences: faster "flip", looks at each element only once.
2012-09-05 16:02:20 -07:00
John Benediktsson
e36c76cadf
sequences: make nth3-unsafe simpler.
2012-09-05 10:52:44 -07:00
John Benediktsson
00a9fcbc85
sequences: faster binary-reduce.
2012-09-05 09:32:54 -07:00
John Benediktsson
5e0a3c5761
sequences: better "halves".
2012-09-04 19:57:45 -07:00
John Benediktsson
b135b956a7
sequences: less bounds checking in binary-reduce.
2012-09-04 19:57:45 -07:00
John Benediktsson
629a5b7bf3
sequences: some minor performance improvements.
2012-08-30 11:33:57 -07:00
John Benediktsson
9e93cd0e13
sequences.extras: moved 2each-index to extras for now.
2012-08-09 16:36:35 -07:00
John Benediktsson
2e0b0e0262
sequences: adding 2each-index.
2012-08-08 20:08:08 -07:00
Doug Coleman
81f50d81eb
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
5b1b6b6bbb
sequences: improve change-nth, if nth was successful, set-nth can be unsafe.
2012-07-30 11:26:32 -07:00
John Benediktsson
e00aaf4185
sequences: slightly faster sequence=.
2012-07-27 21:30:03 -07:00
John Benediktsson
9920f1d2aa
sequences: minor docs fixes.
2012-07-27 21:04:37 -07:00
John Benediktsson
a7fff4f192
sequences: slightly faster ?last.
2012-07-27 09:12:29 -07:00
Doug Coleman
2996ef41ff
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
4a14bd407d
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
4e72d80256
Using "same?" in more places.
2012-07-21 10:22:44 -07:00
John Benediktsson
3502c5fbc2
sequences: fix typo in docs for shorten.
2012-07-20 09:04:51 -07:00
John Benediktsson
ac9fc4035f
sequences: faster last / set-last.
2012-07-18 12:31:53 -07:00
John Benediktsson
936bcc48e4
sequences: prepend-as should be inlined.
2012-07-16 11:54:32 -07:00
John Benediktsson
915176822b
sequences: un-inline prepend to fix "cannot call" error.
2012-05-29 15:58:19 -07:00
John Benediktsson
1a6be98c45
sequences: change prepend to return type of first sequence to match append.
2012-05-29 11:59:03 -07:00
John Benediktsson
e38e9f2850
sequences: adding find-index-from.
2012-04-27 13:41:47 -07:00
John Benediktsson
8c1165cac1
cleanup some lint warnings.
2012-04-18 17:46:01 -07:00
John Benediktsson
c7b6003233
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
2407ee0234
sequences: make map-reduce 5-20% faster, and 2map-reduce 3-5% faster.
2012-04-17 17:58:19 -07:00
John Benediktsson
db60f6e8c9
sequences: adding a test for map-reduce.
2012-04-16 17:52:21 -07:00
Doug Coleman
3ba787b277
core/basis: trim down using lists
2011-11-30 23:15:42 -08:00
Joe Groff
1d4660c7ec
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
47cedd8d3d
slice boa -> <slice-unsafe>
...
If you didn't define it, don't boa it
2011-11-09 19:22:09 -08:00
Joe Groff
4f4bbd3304
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
John Benediktsson
22e9109631
sequences: improve docs for map-sum.
2011-11-09 15:00:08 -08:00
Joe Groff
6ac8478d80
sequences: relate max, min, supremum, infimum docs
...
Suggested by @yac. Closes #321 .
2011-11-02 13:43:06 -07:00
John Benediktsson
c8732657b7
Cleanup more lint warnings.
2011-10-16 13:01:58 -07:00
John Benediktsson
378786599d
Cleanup lint warnings.
2011-10-14 11:47:24 -07:00
Doug Coleman
ba7a005e88
Link ?first ?second ?last from an article.
2011-10-13 15:53:31 -07:00
John Benediktsson
4baf14972f
sequences: adding ?last for symmetry.
2011-10-13 13:04:24 -07:00
John Benediktsson
3207244c60
sequences: define ?first and ?second.
2011-10-13 12:53:46 -07:00
John Benediktsson
0075b6bc28
sequences: adding find-index.
2011-10-12 19:41:54 -07:00
John Benediktsson
3e20365cbe
Revert "sequences: change to use tuple-hashcode algorithm, make string-hashcode work like old sequence-hashcode."
...
This reverts commit 7b7b0d4542
.
2011-10-06 08:37:05 -07:00
John Benediktsson
7b76c26bc0
sequences: change to use tuple-hashcode algorithm, make string-hashcode work like old sequence-hashcode.
2011-10-05 19:22:50 -07:00
John Benediktsson
0fb43fb864
sequences: removing 2unclip-slice.
2011-10-02 09:26:20 -07:00
Doug Coleman
c96289ef62
Fix sequences docs for change-nth stack effect and example needed using section
2011-09-21 10:09:03 -05:00
John Benediktsson
a002b7aa5f
sequences: adding stack effects for change-nth, map-integers, and interleave.
2011-09-19 20:49:57 -07:00
Jon Harper
58405ae6ba
sequences, fix stack effect of (accumulate)
2011-08-25 00:43:37 +02:00
Slava Pestov
c2aca44b4a
sequences: nths should return a sequence of the same type as the original (reported by Jon Harper)
2011-01-29 00:18:36 -05:00
Keita Haga
334d0de92a
sequences: surround a $example with a $examples to the if-empty word's help
2011-01-26 15:06:35 +09:00