Keita Haga
5e813eb6f2
sequences: put a period to description of trim-head-slice word
2011-01-16 09:59:27 +09:00
Keita Haga
fd8bea65f6
sequences: enclose some $examples in '$examples'
2011-01-14 19:29:17 +09:00
Keita Haga
d5fe4fecc1
remove useless whitespace in several documentation
2011-01-05 15:55:34 +09:00
Keita Haga
4645e409c3
sequences: fix typos in docs
2011-01-05 14:01:11 +09:00
Keita Haga
c3189054d1
io.files.info.unix, sequences: few $examples and $unchecked-examples turn into $codes
2010-12-23 04:05:06 +09:00
Keita Haga
dcb387630b
sequences, syntax, vocabs.parser: remove useless whitespace in docs
2010-12-23 03:42:41 +09:00
Slava Pestov
fbbaef70c4
Remove stream-peek and stream-peek1, re-implement dns vocab to not need this abstraction
2010-10-08 18:55:13 -07:00
Doug Coleman
f7af445625
Add stream-peek1 and remove it from images.gif and dns. Add sequence-peek but not stream-peek (yet?)
2010-10-08 06:34:17 -07:00
John Benediktsson
0b47a6b959
sequences: fix typo in docs.
2010-09-10 13:22:48 -07:00
Slava Pestov
67b82a2509
sequences: remove unused 2reverse-each word
2010-05-10 00:46:29 -04:00
Slava Pestov
c1a870fe72
sequences: remove stupid <flat-slice> word
2010-04-17 00:58:30 -05:00
Slava Pestov
f40b313be5
sequences: 'accumulate' now outputs a sequence of the same type as its input
2010-04-14 21:51:00 -07:00
Joe Groff
b9004a4fff
fix up sequences help-lint
2010-03-09 20:29:44 -08:00
Joe Groff
e5c2344ce4
sequences: effects of push-if and push-either were too strict
2010-03-07 21:56:40 -08:00
Joe Groff
17df15280e
generalize stack effect of while, until, and produce
2010-03-05 23:01:22 -08:00
Joe Groff
85f30987e2
spray some polymorphic stack effects on kernel, math, and sequences
2010-03-05 00:21:10 -08:00
Slava Pestov
86b7ba95a8
sequences: fix help lint
2010-02-26 00:44:48 +13:00
Slava Pestov
7826543d2e
sequences: add cartesian-each, cartesian-map, cartesian-product words to eliminate some duplication throughout the codebase
2010-02-25 20:54:57 +13:00
Slava Pestov
e5aa02571f
sequences: add suffix! to destructive sequence ops article
2010-02-25 05:57:09 +13:00
Philipp Brüschweiler
caf978588b
sequences: clarify some stack effect and examlpes in docs
2010-02-19 11:26:01 +01:00
Slava Pestov
220dd88a2c
Update documentation for new help lint check
2010-02-19 12:31:52 +13:00
Slava Pestov
f01487eb83
A few documentation fixes
2010-02-17 00:05:36 +13:00
Slava Pestov
a112e52fe7
sequences: remove outdated comment
2010-02-10 16:12:02 +13:00
Slava Pestov
1a1a61549f
sequences: remove a -rot usage
2010-02-10 15:44:15 +13:00
Doug Coleman
a16d8db145
move sequence-hashcode-step to private
2010-01-22 16:30:22 -06:00
Doug Coleman
1519e0ba69
move (accumulate) to sequences.private
2010-01-22 15:04:13 -06:00
Doug Coleman
8c1d202b4c
Rename accumulator to collector, pusher to selector
2010-01-22 15:00:53 -06:00
Slava Pestov
8836ce2581
Fix performance regression in vector ops on specialized arrays, tweak definition of <slice> and 2map-reduce to generate fewer conditionals
2010-01-19 17:48:10 +13:00
Doug Coleman
4e6a5a772f
Merge branch 'master' of git://factorcode.org/git/factor
...
Conflicts:
core/sequences/sequences-docs.factor
2010-01-14 17:22:02 -06:00
Doug Coleman
9356da6fb3
Fix a few integers-as-sequences in docs
2010-01-14 17:20:43 -06:00
Slava Pestov
e8378b3dc6
generic, sequences: update docs for iota
2010-01-15 08:23:27 +13:00
Slava Pestov
df4fb4a3ee
Removing integers-as-sequences
2010-01-15 07:15:33 +13:00
Slava Pestov
4cea294cfd
sequences: fix map-reduce and 2map-reduce docs, reported by Ben Schlingelhof
2009-12-12 15:16:11 -05:00
Doug Coleman
26de809d57
link pusher and accumulator in docs
2009-12-07 16:26:24 -06:00
Joe Groff
67cc1c01be
Merge branch 'master' into simd-cleanup
2009-11-26 16:14:46 -08:00
Slava Pestov
0612bc6177
Factor source files should not be executable
2009-11-21 17:50:43 -06:00
Joe Groff
f544982fda
Merge branch 'master' of git://factorcode.org/git/factor into simd-cleanup
...
Conflicts:
basis/math/vectors/simd/functor/functor.factor
2009-11-14 21:02:39 -06:00
Slava Pestov
8dd8d70500
sequences: inline a couple of words
2009-11-13 03:01:28 -06:00
Philipp Brüschweiler
8163c47b4a
sequences: rename virtual-seq to virtual-exemplar
2009-11-07 00:06:26 +01:00
Joe Groff
e0ba0c5539
genericize vector ops
2009-11-02 14:21:19 -06:00
Joe Groff
3774c72591
rearrange destructive sequence ops docs
2009-10-31 16:53:39 -05:00
Joe Groff
d55a3a3445
remove useless slot types from copy-state
2009-10-30 22:01:51 -05:00
Joe Groff
3af3536404
clean up copy implementation for real
2009-10-30 19:39:46 -05:00
Joe Groff
70ffa003ec
eliminate roll/-roll from core
2009-10-30 13:36:15 -05:00
Joe Groff
1cf45abf06
Merge branch 'master' of git://factorcode.org/git/factor
2009-10-30 00:42:37 -05:00
Joe Groff
09e76591b1
start cleaning up internal implementation of copy (needs more work)
2009-10-30 00:42:21 -05:00
Joe Groff
3cf641a87c
remove inaccurate comment from sequences docs example
2009-10-29 15:34:38 -05:00
Doug Coleman
1d12a6707d
sigma -> map-sum
2009-10-29 14:34:04 -05:00
Doug Coleman
1738fb7c5e
link a word in docs
2009-10-28 16:17:08 -05:00
Doug Coleman
3e9593d3c0
add a unit test for accumulate!
2009-10-28 16:12:43 -05:00
Doug Coleman
def951ce9b
add accumulate! for joe
2009-10-28 16:10:05 -05:00
Doug Coleman
93de179c2f
over push -> suffix!, over push-all -> append!
2009-10-28 15:29:01 -05:00
Doug Coleman
bd13e018dd
memq? -> member-eq?, sorted-memq? -> sorted-member-eq?
2009-10-28 15:02:00 -05:00
Doug Coleman
1476cdb974
reverse-here -> reverse!
2009-10-28 14:40:15 -05:00
Doug Coleman
b0e3c7a1fc
add docs for append! and suffix!
2009-10-28 13:48:16 -05:00
Doug Coleman
7ce4b746e5
parsed -> suffix!, add append!
2009-10-28 13:38:27 -05:00
Slava Pestov
299b5b0f6c
filter-here -> filter!
2009-10-28 00:44:05 -05:00
Slava Pestov
50f5c3d116
remq -> remove-eq, delq -> remove-eq!
2009-10-28 00:23:08 -05:00
Slava Pestov
951e3e9c83
delete-nth -> remove-nth!
2009-10-27 23:41:57 -05:00
Slava Pestov
f5a0a8b6e1
delete -> remove!
2009-10-27 23:25:35 -05:00
Slava Pestov
08e7d25dc5
change-each -> map!, deep-change-each -> deep-map!
2009-10-27 22:32:56 -05:00
Joe Groff
5caa118e40
make first2, first3, first4 inline
2009-10-26 17:30:37 -05:00
Joe Groff
e31ed3eda4
add filter-as to sequences
2009-10-22 17:37:20 -05:00
Joe Groff
ba5429e772
fix sequences bootstrap
2009-10-22 14:53:16 -05:00
Joe Groff
fdea9b09f2
change produce-as so it uses an intermediate vector of a type appropriate to the destination type
2009-10-22 14:35:27 -05:00
Doug Coleman
0d4b9132d7
fix a bunch of typos in docs
2009-10-21 17:40:43 -05:00
Doug Coleman
67167cf9ea
Merge branch 'docs' of git://github.com/klazuka/factor into klazuka
...
Conflicts:
basis/math/vectors/vectors-docs.factor
2009-10-02 15:58:45 -05:00
Keith Lazuka
405e5d015b
docs: change $subsection to $subsections
2009-10-02 12:15:48 -04:00
Slava Pestov
56a4b323ef
sequences: add accumulate-as and document insert-nth
2009-10-01 23:13:33 -05:00
Keith Lazuka
bea4aa7662
docs: updated some docs to use new markup
2009-09-22 15:22:34 -04:00
Slava Pestov
924ccca457
sequences: privacy please
2009-09-08 16:25:41 -05:00
Doug Coleman
b9eb3a791f
deprecating nth for integers is annoying
2009-09-08 14:18:26 -05:00
Jon Harper
1c97d33854
Fix documentation errors
2009-09-06 19:00:03 +09:00
Joe Groff
d26735c98f
mark integer sequence methods as deprecated
2009-08-29 10:29:41 -05:00
Doug Coleman
bea1e3732e
revert replicate change again...the world is not ready
2009-08-23 01:00:46 -04:00
Doug Coleman
3dce2eda19
use iota in replicate
2009-08-22 21:00:18 -04:00
Doug Coleman
7b7f22fae2
Revert "use iota in replicate"
...
This reverts commit 88d1f0d78a
.
2009-08-22 20:59:56 -04:00
Doug Coleman
87a6e9cb31
use iota in replicate
2009-08-22 20:59:36 -04:00
Doug Coleman
a6c7e9d9d4
use iota in a couple of places
2009-08-22 20:56:16 -04:00
Slava Pestov
030b1b816c
Add inline declarations for various assorted methods
2009-08-17 22:32:21 -05:00
Doug Coleman
2f125eeb93
fix docs
2009-08-15 14:02:18 -05:00
Doug Coleman
7c92ab1ea5
move if-zero etc to math, remove 1-/1+ from math
2009-08-14 14:27:23 -05:00
Doug Coleman
686b3e348e
use ERROR: in several places instead of throwing strings
2009-08-11 23:09:02 -05:00
Doug Coleman
02becc26fc
add docs for if-zero etc, add docs for 10^
2009-08-11 18:45:01 -05:00
Doug Coleman
14ef1649d4
add if-zero/when-zero/unless-zero to core/ and update usages
2009-08-11 17:59:40 -05:00
Slava Pestov
07ea78df57
sequences: map, 2map, 3map use new map-integers combinator; last two no longer depend on integers-as-sequences
2009-08-03 13:30:55 -05:00
Doug Coleman
eb61ffc56d
use itoa in more places
2009-08-02 18:18:31 -05:00
Slava Pestov
4359a10259
sequences: add declaration so that array-flip compiles better
2009-07-28 21:33:12 -05:00
Slava Pestov
f1683f9fcf
Move set-last from circular.private to sequences
2009-07-28 11:51:47 -05:00
Doug Coleman
990b1e1249
Merge branch 'master' of git://factorcode.org/git/factor
2009-07-24 18:12:24 -05:00
Doug Coleman
6451ed542d
document a word in sequences
2009-07-24 18:10:53 -05:00
Slava Pestov
5336d71750
sequences: update docs a bit
2009-07-24 18:05:23 -05:00
Slava Pestov
3b244d5d41
compiler.cfg.value-numbering: fix ##compare and ##compare-branch rewrites
2009-07-13 12:33:58 -05:00
Slava Pestov
37241c5eee
sequences: fix replicate example
2009-07-07 15:12:21 -05:00
Slava Pestov
ef6634337d
Oops: interleave-step is bi*
2009-06-16 14:05:39 -05:00
Slava Pestov
92b436d7fb
interleave: allow the 'between' quot to access the stack
2009-06-15 16:07:39 -05:00
Slava Pestov
75276855ae
sequences: change implementation of interleave
2009-06-14 18:22:31 -05:00
Slava Pestov
dd61b59937
sequences: update each-index and map-index to not depend on integers-as-sequences
2009-06-14 18:10:24 -05:00
Doug Coleman
04c6e07678
unassociate last with pop/pop* in docs
2009-05-25 17:03:32 -05:00
Doug Coleman
407377fc98
rename peek -> last and update all usages
2009-05-25 16:38:33 -05:00
Doug Coleman
4eab045deb
add nth-unsafe to sequences.private, making md5 faster
2009-05-18 00:24:24 -05:00
Slava Pestov
b31fe9b8f2
Implement stricter vocab search path semantics, with a new API for vocabs.parser. Add map-find-last to sequences vocab
2009-05-14 22:31:29 -05:00
Slava Pestov
9488e78532
clean up contents and lines words; contents never outputs f now
2009-05-10 16:39:51 -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
7aa65b5b5f
Fixing new method dispatch implementation
2009-04-25 19:41:27 -05:00
Slava Pestov
65b27354ad
Merge branch 'master' into smarter_error_list
2009-04-14 15:07:22 -05:00
Slava Pestov
30a44225cd
Fix code for floats syntax change
2009-04-14 15:04:58 -05:00
Slava Pestov
73a2e81953
Print unit test failures better
2009-04-13 14:40:55 -05:00
Slava Pestov
bc6dfeea17
Move assert-sequence= from mime.multipart to sequences
2009-04-09 04:49:54 -05:00
Slava Pestov
fb246e2c85
Documentation fixes
2009-04-06 04:15:58 -05:00
Slava Pestov
99b8400e56
Documentation updates
2009-04-06 03:00:46 -05:00
Slava Pestov
d707292d84
Fix documentation for map-index
2009-04-04 20:22:49 -05:00
Slava Pestov
c0154c1391
Change (:) to parse effect immediately, and remove ( parsing word
2009-03-21 03:17:35 -05:00
Slava Pestov
a6b57c495f
Fix check-slice
2009-03-12 20:37:26 -05:00
Daniel Ehrenberg
5027d02b12
Stack shuffling cleanup in sequences
2009-03-11 00:10:27 -05:00
Slava Pestov
7b9491066c
Fix conflict in images vocab
2009-03-04 21:43:56 -06:00
Slava Pestov
abdf153374
Add utf8-index> and >utf8-index words for dealing with broken C APIs
2009-03-04 20:43:04 -06:00
Daniel Ehrenberg
5dc614c9c9
Adding map-find to core
2009-03-03 12:22:47 -06:00
Slava Pestov
25a877e50b
Merge OneEyed's patch
2009-02-28 17:06:55 -06:00
Slava Pestov
cd53c2bd37
produce and produce-as: don't need third quotation either
2009-02-28 15:31:34 -06:00
Samuel Tardieu
087d931c36
Remove the tail argument from do/until/while
2009-02-18 02:41:14 +01:00
Slava Pestov
421ee726b8
Merge branch 'master' into new_ui
2009-02-16 21:22:12 -06:00
Slava Pestov
6a89e4ee3b
Updating sequence and hashtable documentation to point more clearly at the relevant generic operations defined on these types
2009-02-16 21:06:28 -06:00
Slava Pestov
1bbabcd5e1
Remove some usages of slip combinators from the core
2009-02-05 03:29:59 -06:00
Slava Pestov
dfa0931db1
Merge branch 'master' into new_ui
2009-02-04 05:26:32 -06:00
Slava Pestov
f8d80faed3
Add 1sequence word. Add unit tests for existing 1vector and 1byte-array words, and make them use 1sequence
2009-02-04 05:13:12 -06:00
Slava Pestov
f5c7beb75a
Clean up trim-{head,tail}{,-slice} combinators
2009-02-04 00:51:00 -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
833b805f5c
infimum, supremum: use map-reduce
2009-02-02 03:33:40 -06:00
Slava Pestov
4513417657
Clean up some messy stack shuffling
2009-02-01 19:14:43 -06:00
Slava Pestov
0a0431e6ab
Fix conflict
2009-01-30 02:24:34 -06:00
Doug Coleman
3c408342ef
renaming: contain? -> any?, deep-contains? -> deep-any?, pad-left -> pad-head, pad-right -> pad-tail, trim-left -> trim-head, trim-right -> trim-tail
2009-01-29 22:19:07 -06:00
Slava Pestov
478ef76801
Documents no longer mutatte their model's value
2009-01-29 03:04:23 -06:00
Slava Pestov
f34c14a0f5
Remove some usages of tuck
2009-01-23 18:20:47 -06:00
Slava Pestov
1c6df27d3c
Minor documentation fixes
2009-01-21 00:45:23 -06:00
Doug Coleman
66f5694462
document more core/ words
2009-01-17 22:15:57 -06:00
Slava Pestov
94292d1791
Move monotonic? unit tests to grouping
2009-01-15 15:37:30 -06:00
Slava Pestov
1f0c01183e
Re-implement monotonic? without using rot
2009-01-15 15:24:46 -06:00
Doug Coleman
f4cffe8a1b
move iota to sequences, fix example, add unit tests, make iota's slot integers only
2009-01-10 13:05:25 -06:00
Slava Pestov
6959f445c4
Merge branch 'master' of git://factorcode.org/git/factor
2009-01-09 22:26:49 -06:00
Slava Pestov
a977691d82
Add iota virtual sequence which will eventually replace integers-as-sequences
2009-01-09 21:35:49 -06:00
Doug Coleman
5ae9c7fe2f
document 3each, 3map, 3map-as
2009-01-09 20:35:01 -06:00
Slava Pestov
af49278d3f
Add 2tri* and 2tri@ combinators, clean up (3each), and fix failing unit test for 3map
2009-01-05 18:12:34 -06:00
Slava Pestov
7b110b0bfd
Move 3each, 3map from compiler.utilities to sequences
2009-01-05 17:32:08 -06:00
Samuel Tardieu
0182a3430d
Allow sigma and friends to use the stack
...
"sigma" used to use the stack to remember the current total.
This prevented the use of quotations manipulating elements
that were expecting to be on the stack.
This patch hides the counter while executing the quotation,
so that the latter can fully use the stack.
2008-12-27 21:39:32 +01:00
Slava Pestov
63fda570bf
Fixing assorted compile errors and help lint warnings
2008-12-16 01:12:36 -06:00
Slava Pestov
400b2a0ccb
Add declaration to from-end
2008-12-15 21:34:25 -06:00
Slava Pestov
de3a4f5462
Change some dup ... swap to bi and keep
2008-12-15 21:20:32 -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
Slava Pestov
e6145c71c0
Change a -rot usage to 2dip
2008-12-10 17:26:54 -06:00