Doug Coleman
36b8b56b2c
grouping: Remove <clumps> and <circular-clumps> and rename <sliced-clumps>
...
and <sliced-circular-clumps> to those. Fixes #765 .
2013-03-23 11:38:05 -07:00
Doug Coleman
b792bd1f55
grouping: Remove <groups>, old <sliced-groups> is now <groups>. Fixes
2013-03-23 11:37:51 -07:00
John Benediktsson
9d63cc6fd6
grouping: making monotonic? faster.
2013-03-06 07:31:45 -08:00
John Benediktsson
49d48a1245
grouping: faster all-eq? and all-equal? (fewer comparisons).
2013-03-05 20:01:27 -08:00
Doug Coleman
84d300c1b3
grouping: The expectation is that if there is a virtual clump of length N, then each iteration through that clump there are N elements available. This patch breaks that assumption.
...
Revert "change clump when the group size is greater than the sequence length"
This reverts commit baedb316c5 .
Conflicts:
basis/grouping/grouping-docs.factor
basis/grouping/grouping-tests.factor
basis/grouping/grouping.factor
2012-10-29 09:47:15 -07:00
Jon Harper
50d3a8f197
Allow circular clumps with a length smaller than the clump
...
Conflicts:
basis/grouping/grouping-tests.factor
2012-10-28 13:41:41 -07:00
Jon Harper
2535b58439
clump: fix empty sequence input. rephrase docs a bit
2012-10-28 13:34:18 -07:00
Jon Harper
baedb316c5
change clump when the group size is greater than the sequence length
2012-10-28 13:34:08 -07:00
Jon Harper
962ec0a4be
Friendlier grouping/clumping error message
2012-10-28 13:33:51 -07: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
John Benediktsson
370c4d6da6
Fixing docs for recent stack effects additions.
2011-09-24 22:08:54 -07:00
John Benediktsson
ac8b589f9a
Adding stack effects.
2011-09-23 17:46:40 -07:00
Slava Pestov
bad5c35678
grouping: minor cleanup
2010-03-17 19:13:25 +13:00
Joe Groff
cc633e9d09
grouping: circular-slice shouldn't be a subclass of slice since that thwarts method inlining
2010-02-26 13:20:47 -08:00
Joe Groff
7eadd91c05
grouping: add circular clumps (e.g. { 1 2 3 4 } 3 circular-clump => { { 1 2 3 } { 2 3 4 } { 3 4 1 } { 4 1 2 } }
2010-02-25 17:05:03 -08:00
Slava Pestov
23cfe0b5f9
grouping: tweak inheritance to make method precedence explicit
2010-01-30 21:14:41 +13:00
Slava Pestov
37e03d2e01
Trying to fix mixin semantics
2010-01-30 09:28:51 +13:00
Slava Pestov
e3254d2209
grouping: clump on empty sequence was trying to make a sequence of length -1
2009-10-23 02:58:15 -05:00
Slava Pestov
bee6fa641e
Add inline declarations for various assorted methods
2009-08-17 22:32:21 -05:00
Doug Coleman
d1ce837569
Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring
2009-08-13 19:21:44 -05:00
Slava Pestov
7851aac222
Replace some usages of prepose with fry
2009-01-25 23:04:35 -06:00
Slava Pestov
1f0c01183e
Re-implement monotonic? without using rot
2009-01-15 15:24:46 -06:00
Slava Pestov
daf2857d7b
define-inline now takes an effect parameter
...
C: now sets the stack effect of the new word to slot names
add new basis/constants vocab; CONSTANT: foo bar is equivalent to : foo bar ; inline
(going to fold CONSTANT:, ALIAS: and qualified into core soon perhaps)
tighten the screws: inline words now need a stack declaration too
update some usages of inline words
2008-12-15 19:44:56 -06:00
Doug Coleman
347087fab8
remove >r r> from grouping
2008-11-29 13:29:38 -06:00
Slava Pestov
ed3a81a503
Faster M: hashtable >alist performs less dispatch and allocates less junk
2008-11-11 23:03:50 -06:00