]> gitweb.factorcode.org Git - factor.git/commitdiff
Rename curry* to with
authorSlava Pestov <slava@factorcode.org>
Wed, 9 Jan 2008 22:36:30 +0000 (17:36 -0500)
committerSlava Pestov <slava@factorcode.org>
Wed, 9 Jan 2008 22:36:30 +0000 (17:36 -0500)
122 files changed:
core/assocs/assocs.factor
core/classes/classes.factor
core/combinators/combinators.factor
core/compiler/units/units.factor
core/generator/registers/registers.factor
core/generic/generic.factor
core/generic/standard/standard.factor
core/graphs/graphs.factor
core/inference/backend/backend.factor
core/inference/class/class-tests.factor
core/inference/dataflow/dataflow.factor
core/io/binary/binary.factor
core/io/files/files.factor
core/kernel/kernel-docs.factor
core/kernel/kernel.factor
core/mirrors/mirrors.factor
core/optimizer/backend/backend.factor
core/optimizer/def-use/def-use-tests.factor
core/optimizer/def-use/def-use.factor
core/optimizer/math/math.factor
core/parser/parser.factor
core/prettyprint/prettyprint.factor
core/prettyprint/sections/sections.factor
core/sequences/sequences.factor
core/slots/slots.factor
core/tuples/tuples.factor
core/vocabs/vocabs.factor
core/words/words.factor
extra/alarms/alarms.factor
extra/automata/automata.factor
extra/base64/base64.factor
extra/benchmark/mandel/mandel.factor
extra/benchmark/partial-sums/partial-sums.factor
extra/benchmark/raytracer/raytracer.factor
extra/bitfields/bitfields.factor
extra/boids/boids.factor
extra/calendar/calendar.factor
extra/catalyst-talk/catalyst-talk.factor
extra/cocoa/messages/messages.factor
extra/combinators/lib/lib.factor
extra/contributors/contributors.factor
extra/core-foundation/core-foundation.factor
extra/crypto/sha1/sha1.factor
extra/crypto/sha2/sha2.factor
extra/documents/documents.factor
extra/faq/faq.factor
extra/furnace/furnace-tests.factor
extra/furnace/furnace.factor
extra/golden-section/golden-section.factor
extra/hashtables/lib/lib.factor
extra/help/crossref/crossref.factor
extra/help/handbook/handbook.factor
extra/help/markup/markup.factor
extra/html/html.factor
extra/html/parser/analyzer/analyzer.factor
extra/io/paths/paths.factor
extra/koszul/koszul.factor
extra/lcd/lcd.factor
extra/levenshtein/levenshtein.factor
extra/lint/lint.factor
extra/lisp/lisp.factor
extra/locals/locals.factor
extra/math/analysis/analysis.factor
extra/math/erato/erato.factor
extra/math/fft/fft.factor
extra/math/matrices/matrices.factor
extra/math/miller-rabin/miller-rabin.factor
extra/math/statistics/statistics.factor
extra/math/vectors/vectors.factor
extra/maze/maze.factor
extra/models/models.factor
extra/mortar/mortar.factor
extra/odbc/odbc.factor
extra/opengl/opengl.factor
extra/postgresql/postgresql.factor
extra/random-weighted/random-weighted.factor
extra/random/random.factor
extra/rss/rss.factor
extra/sequences/lib/lib.factor
extra/serialize/serialize.factor
extra/shufflers/shufflers.factor
extra/springies/models/2x2snake/2x2snake.factor
extra/sqlite/tuple-db/tuple-db.factor
extra/tetris/board/board.factor
extra/tetris/game/game.factor
extra/timers/timers.factor
extra/tools/browser/browser.factor
extra/tools/completion/completion.factor
extra/tools/crossref/crossref.factor
extra/tools/deploy/shaker/shaker.factor
extra/tools/deploy/windows/windows.factor
extra/trees/splay/splay-tests.factor
extra/tuple-syntax/tuple-syntax.factor
extra/ui/freetype/freetype.factor
extra/ui/gadgets/books/books.factor
extra/ui/gadgets/editors/editors.factor
extra/ui/gadgets/gadgets.factor
extra/ui/gadgets/grid-lines/grid-lines.factor
extra/ui/gadgets/grids/grids.factor
extra/ui/gadgets/packs/packs.factor
extra/ui/gadgets/panes/panes.factor
extra/ui/gadgets/paragraphs/paragraphs.factor
extra/ui/gestures/gestures.factor
extra/ui/operations/operations.factor
extra/ui/render/render.factor
extra/ui/tools/search/search.factor
extra/ui/tools/workspace/workspace.factor
extra/ui/ui.factor
extra/ui/x11/x11.factor
extra/unicode/breaks/breaks.factor
extra/unicode/unicode-tests.factor
extra/unicode/unicode.factor
extra/webapps/article-manager/database/database.factor
extra/webapps/planet/planet.factor
extra/webapps/source/source.factor
extra/xml/data/data.factor
extra/xml/test/soap.factor
extra/xml/utilities/utilities.factor
extra/xmode/catalog/catalog.factor
extra/xmode/loader/loader.factor
extra/xmode/utilities/utilities-tests.factor
extra/yahoo/yahoo.factor

index 40b35a931b14c8dcea1e22e75c55fd49847ab67d..a940248198bd1908b61e914a7b070043cf9e4736 100644 (file)
@@ -143,7 +143,7 @@ M: assoc >alist [ 2array ] { } assoc>map ;
     swap [ = nip ] curry assoc-find 2drop ;
 
 : search-alist ( key alist -- pair i )
-    [ first = ] curry* find swap ; inline
+    [ first = ] with find swap ; inline
 
 M: sequence at*
     search-alist [ second t ] [ f ] if ;
index 6ac95a1c919c9b000315e545702763eadf55b763..65dc5f5ff7c09efb69499d7ec670fa7f35efeaf4 100755 (executable)
@@ -97,7 +97,7 @@ DEFER: (class<)
 
 : union-class< ( cls1 cls2 -- ? )
     [ flatten-union-class ] 2apply keys
-    [ nip [ (class<) ] curry* contains? ] curry assoc-all? ;
+    [ nip [ (class<) ] with contains? ] curry assoc-all? ;
 
 : (class<) ( class1 class2 -- ? )
     {
@@ -123,7 +123,7 @@ DEFER: (class<)
 : largest-class ( seq -- n elt )
     dup [
         [ 2dup class< >r swap class< not r> and ]
-        curry* subset empty?
+        with subset empty?
     ] curry find [ "Topological sort failed" throw ] unless* ;
 
 PRIVATE>
@@ -156,7 +156,7 @@ PRIVATE>
     [ dupd classes-intersect? ] subset dup empty? [
         2drop f
     ] [
-        tuck [ class< ] curry* all? [ peek ] [ drop f ] if
+        tuck [ class< ] with all? [ peek ] [ drop f ] if
     ] if ;
 
 GENERIC: reset-class ( class -- )
@@ -167,7 +167,7 @@ M: word reset-class drop ;
 
 ! class<map
 : bigger-classes ( class -- seq )
-    classes [ (class<) ] curry* subset ;
+    classes [ (class<) ] with subset ;
 
 : bigger-classes+ ( class -- )
     [ bigger-classes [ dup ] H{ } map>assoc ] keep
index 6f39925bd090e384b044def8ce89e01f034da23f..f532f06293d53124445f7e2f467f54d8aa9fa41b 100755 (executable)
@@ -69,7 +69,7 @@ M: sequence hashcode*
 
 : hash-case-table ( default assoc -- array )
     V{ } [ 1array ] distribute-buckets
-    [ case>quot ] curry* map ;
+    [ case>quot ] with map ;
 
 : hash-dispatch-quot ( table -- quot )
     [ length 1- [ fixnum-bitand ] curry ] keep
index af56f1796bc7f7a73e257dc4efd9f93b8f601aaa..68e1a79185d09ae1fe96ddba01ef47365b6b0df0 100755 (executable)
@@ -54,7 +54,7 @@ GENERIC: definitions-changed ( assoc obj -- )
 
 : notify-definition-observers ( assoc -- )
     definition-observers get
-    [ definitions-changed ] curry* each ;
+    [ definitions-changed ] with each ;
 
 : changed-vocabs ( assoc -- vocabs )
     [ drop word? ] assoc-subset
index bbde2ff6f470c254e3c5ca45ba305ca3a8e15e38..8dc9bd606f03b59bf7ad9cde56406c1ce3d90b40 100644 (file)
@@ -525,7 +525,7 @@ M: loc lazy-store
 : clash? ( seq -- ? )
     phantoms append [
         dup cached? [ cached-vreg ] when swap member?
-    ] curry* contains? ;
+    ] with contains? ;
 
 : outputs-clash? ( -- ? )
     output-vregs append clash? ;
index 7c56d43b724a70690e6425e3214c0701abd478ae..961c962e422eed785a2eafccaaaef3f5ab695c9a 100755 (executable)
@@ -91,7 +91,7 @@ M: method-spec forget* first2 [ delete-at ] with-methods ;
     all-words [
         "methods" word-prop keys
         swap [ key? ] curry contains?
-    ] curry* subset ;
+    ] with subset ;
 
 : implementors ( class -- seq )
     dup associate implementors* ;
index 45ecf7a03165504ea068aa91b2e9bab741ae77b2..851a58ecd6df1063ab65a5ac829fc34f4d92a2ac 100755 (executable)
@@ -96,7 +96,7 @@ TUPLE: no-method object generic ;
     num-tags get [
         vtable-class
         [ swap first classes-intersect? ] curry subset
-    ] curry* map ;
+    ] with map ;
 
 : build-type-vtable ( alist-seq -- alist-seq )
     dup length [
index 1088c75e49333614b7911cea3b76495d9fd85889..853589532de0235e233d547cbbfd6b591914cd45 100644 (file)
@@ -14,10 +14,10 @@ SYMBOL: graph
     graph get [ drop H{ } clone ] cache ;
 
 : add-vertex ( vertex edges graph -- )
-    [ [ dupd nest set-at ] curry* each ] if-graph ; inline
+    [ [ dupd nest set-at ] with each ] if-graph ; inline
 
 : remove-vertex ( vertex edges graph -- )
-    [ [ graph get at delete-at ] curry* each ] if-graph ; inline
+    [ [ graph get at delete-at ] with each ] if-graph ; inline
 
 SYMBOL: previous
 
index e8138577f5fa0fcc758e1930436dd5d2497b8213..3afbe3bc8e96e583f7b780a7f75ed3d1b830f8ba 100755 (executable)
@@ -18,7 +18,7 @@ IN: inference.backend
     local-recursive-state at ;
 
 : recursive-quotation? ( quot -- ? )
-    local-recursive-state [ first eq? ] curry* contains? ;
+    local-recursive-state [ first eq? ] with contains? ;
 
 TUPLE: inference-error rstate major? ;
 
@@ -318,7 +318,7 @@ TUPLE: unbalanced-branches-error quots in out ;
     ] H{ } make-assoc ; inline
 
 : (infer-branches) ( last branches -- list )
-    [ infer-branch ] curry* map
+    [ infer-branch ] with map
     dup unify-effects unify-dataflow ; inline
 
 : infer-branches ( last branches node -- )
index 41f48e5521e8ca30e4c260720707c253b6150d2b..aa511b2bb68595e17ecc808c7fe6d91a74cbbdc7 100755 (executable)
@@ -14,7 +14,7 @@ slots.private combinators definitions ;
 
 : inlined? ( quot word -- ? )
     swap dataflow optimize
-    [ node-param eq? ] curry* node-exists? not ;
+    [ node-param eq? ] with node-exists? not ;
 
 GENERIC: mynot ( x -- y )
 
index 9689a1455dad2d8433bbdd15bf717905c3a47b02..6a0be66bb14d228c04a00699570e632eb73423e5 100755 (executable)
@@ -217,7 +217,7 @@ M: node calls-label* 2drop f ;
 M: #call-label calls-label* node-param eq? ;
 
 : calls-label? ( label node -- ? )
-    [ calls-label* ] curry* node-exists? ;
+    [ calls-label* ] with node-exists? ;
 
 : recursive-label? ( node -- ? )
     dup node-param swap calls-label? ;
@@ -270,10 +270,10 @@ SYMBOL: node-stack
     swap node-classes at object or ;
 
 : node-input-classes ( node -- seq )
-    dup node-in-d [ node-class ] curry* map ;
+    dup node-in-d [ node-class ] with map ;
 
 : node-input-intervals ( node -- seq )
-    dup node-in-d [ node-interval ] curry* map ;
+    dup node-in-d [ node-interval ] with map ;
 
 : node-class-first ( node -- class )
     dup node-in-d first node-class ;
index 538f51741800ce7aa84b019e6cb6b01ec7591118..c4d3abefce6e8e977f74c2adaa91c1b93a0747cc 100644 (file)
@@ -10,7 +10,7 @@ IN: io.binary
 
 : nth-byte ( x n -- b ) -8 * shift mask-byte ; inline
 
-: >le ( x n -- str ) [ nth-byte ] curry* "" map-as ;
+: >le ( x n -- str ) [ nth-byte ] with "" map-as ;
 : >be ( x n -- str ) >le dup reverse-here ;
 
 : d>w/w ( d -- w1 w2 )
index 350ea1dfa65462529bb8bc35bd93ded09b02eb25..7bd9599e4dc156aa9bda3e9c0357bdf3c2b9d756 100755 (executable)
@@ -46,7 +46,7 @@ M: object root-directory? ( path -- ? ) path-separator? ;
     [
         dup string?
         [ tuck path+ directory? 2array ] [ nip ] if
-    ] curry* map
+    ] with map
     [ first special-directory? not ] subset ;
 
 : directory ( path -- seq )
@@ -143,7 +143,7 @@ HOOK: binary-roots io-backend ( -- seq )
 
 <PRIVATE
 : append-path ( path files -- paths )
-    [ path+ ] curry* map ;
+    [ path+ ] with map ;
 
 : get-paths ( dir -- paths )
     dup directory keys append-path ;
index 798c0c4b1bcd4d8843c96a59e425111cee01468b..aec42d1bded663be467b702fb4470fe32f3b66d4 100755 (executable)
@@ -69,7 +69,7 @@ $nl
 { $subsection curry }
 { $subsection 2curry }
 { $subsection 3curry }
-{ $subsection curry* }
+{ $subsection with }
 { $subsection compose }
 { $subsection 3compose }
 "Quotations also implement the sequence protocol, and can be manipulated with sequence words; see " { $link "quotations" } "."
@@ -509,16 +509,16 @@ HELP: 3curry
 { $description "Outputs a " { $link callable } " which pushes " { $snippet "obj1" } ", " { $snippet "obj2" } " and " { $snippet "obj3" } ", and then calls " { $snippet "quot" } "." }
 { $notes "This operation is efficient and does not copy the quotation." } ;
 
-HELP: curry*
+HELP: with
 { $values { "param" object } { "obj" object } { "quot" "a quotation with stack effect " { $snippet "( param elt -- ... )" } } { "obj" object } { "curry" curry } }
 { $description "Partial application on the left. The following two lines are equivalent:"
     { $code "swap [ swap A ] curry B" }
-    { $code "[ A ] curry* B" }
+    { $code "[ A ] with B" }
     
 }
 { $notes "This operation is efficient and does not copy the quotation." }
 { $examples
-    { $example "2 { 1 2 3 } [ - ] curry* map ." "{ 1 0 -1 }" }
+    { $example "2 { 1 2 3 } [ - ] with map ." "{ 1 0 -1 }" }
 } ;
 
 HELP: compose
index 2a0f46b72ce7319f15128a35fcf937323c160243..8ac1fc5fa095cd3a153932019a3b53677d58837c 100755 (executable)
@@ -75,7 +75,7 @@ DEFER: if
 : 3curry ( obj1 obj2 obj3 quot -- curry )
     curry curry curry ; inline
 
-: curry* ( param obj quot -- obj curry )
+: with ( param obj quot -- obj curry )
     swapd [ swapd call ] 2curry ; inline
 
 : compose ( quot1 quot2 -- curry )
index d7ceaea9aa15abd610b68a0f2ef7e16fe1be080c..7d3d5a53d00b28600ebdad67f815ef2438cb2f3b 100644 (file)
@@ -41,7 +41,7 @@ M: mirror delete-at ( key mirror -- )
 
 M: mirror >alist ( mirror -- alist )
     >mirror<
-    [ [ slot-spec-offset slot ] curry* map ] keep
+    [ [ slot-spec-offset slot ] with map ] keep
     [ slot-spec-reader ] map swap 2array flip ;
 
 M: mirror assoc-size mirror-slots length ;
index 05d8fd30b2901ddfdb950c142f73a808cf9f58b6..9da5679ea906048cd74bb0b3e6b4b031d01914cc 100644 (file)
@@ -325,13 +325,13 @@ M: #dispatch optimize-node*
 
 : partial-eval? ( #call -- ? )
     dup node-param "foldable" word-prop [
-        dup node-in-d [ node-literal? ] curry* all?
+        dup node-in-d [ node-literal? ] with all?
     ] [
         drop f
     ] if ;
 
 : literal-in-d ( #call -- inputs )
-    dup node-in-d [ node-literal ] curry* map ;
+    dup node-in-d [ node-literal ] with map ;
 
 : partial-eval ( #call -- node )
     dup literal-in-d over node-param 1quotation
index 556b9d7d116cf494160d0a87fa6ed941f97cceed..afe085746323af3bcc05d48d21fd45d7db4d7680 100644 (file)
@@ -73,10 +73,10 @@ namespaces assocs kernel sequences math tools.test words ;
 : p3 drop 3 ;
 
 : regression-0
-    [ 2drop ] curry* assoc-find ;
+    [ 2drop ] with assoc-find ;
 
 [ t ] [
-    [ [ 2drop ] curry* assoc-find ] kill-set
+    [ [ 2drop ] with assoc-find ] kill-set
     [ 2drop ] swap member?
 ] unit-test
 
@@ -104,7 +104,7 @@ namespaces assocs kernel sequences math tools.test words ;
             rot
             [ 2swap [ swapd * -rot p2 +@ ] 2keep ]
             assoc-each 2drop
-        ] curry* assoc-each
+        ] with assoc-each
     ] H{ } make-assoc p3 ;
 
 [ { t t t t t } ] [
@@ -122,7 +122,7 @@ namespaces assocs kernel sequences math tools.test words ;
                 rot
                 [ 2swap [ swapd * -rot p2 +@ ] 2keep ]
                 assoc-each 2drop
-            ] curry* assoc-each
+            ] with assoc-each
         ]
     }
     \ regression-2 word-def kill-set
index 82b39fcb8deb4503ae654bcb29e91e4166413fa7..091f6524f0150796c4b4922ad36bdad215024ba1 100644 (file)
@@ -12,7 +12,7 @@ SYMBOL: def-use
     used-by empty? ;
 
 : uses-values ( node seq -- )
-    [ def-use get [ ?push ] change-at ] curry* each ;
+    [ def-use get [ ?push ] change-at ] with each ;
 
 : defs-values ( seq -- )
     #! If there is no value, set it to a new empty vector,
index 3389b1b84e5c12b56bae67a649c900aac29eefdd..31ced167a657a91ab1f9f72cbac3892b55cf5393 100755 (executable)
@@ -89,7 +89,7 @@ optimizer.def-use generic.standard ;
 
 : math-closure ( class -- newclass )
     { fixnum integer rational real }
-    [ class< ] curry* find nip number or ;
+    [ class< ] with find nip number or ;
 
 : fits? ( interval class -- ? )
     "interval" word-prop dup
index c0632bbc2b54fdaebca35e67cba1a2f5bbcbf279..8dcca00e3a2827a4e6ddbc197ebc6f739c0408db 100755 (executable)
@@ -242,7 +242,7 @@ M: no-word summary
     dup forward-reference? [
         drop
         dup use get
-        [ at ] curry* map [ ] subset
+        [ at ] with map [ ] subset
         [ forward-reference? not ] find nip
         [ ] [ forward-error ] ?if
     ] [
index 0fcc6edab9cc61586e69b5414fdf1f0fcf4a99e4..21104de5b60e5abbd346460d4900b1d476039da8 100755 (executable)
@@ -207,7 +207,7 @@ M: word declarations.
         POSTPONE: delimiter
         POSTPONE: inline
         POSTPONE: foldable
-    } [ declaration. ] curry* each ;
+    } [ declaration. ] with each ;
 
 : pprint-; \ ; pprint-word ;
 
@@ -233,7 +233,7 @@ M: mixin-class see-class*
     dup members [
         hard line-break
         \ INSTANCE: pprint-word pprint-word pprint-word
-    ] curry* each block> block> ;
+    ] with each block> block> ;
 
 M: predicate-class see-class*
     <colon \ PREDICATE: pprint-word
@@ -258,7 +258,7 @@ M: builtin-class see-class*
     natural-sort [ nl see ] each ;
 
 : see-implementors ( class -- seq )
-    dup implementors [ 2array ] curry* map ;
+    dup implementors [ 2array ] with map ;
 
 : see-class ( class -- )
     dup class? [
index 063dcb7fd4462ba528324b172af50543fea413e4..9574d18eb17543b9b749e3871534cc18408a34ba 100644 (file)
@@ -173,7 +173,7 @@ M: block section-fits? ( section -- ? )
     swap block-sections [ line-break? not ] subset
     unclip pprint-section [
         dup rot call pprint-section
-    ] curry* each ; inline
+    ] with each ; inline
 
 M: block short-section ( block -- )
     [ advance ] pprint-sections ;
@@ -311,7 +311,7 @@ M: f section-end-group? drop f ;
             2dup 1- swap ?nth prev set
             2dup 1+ swap ?nth next set
             swap nth dup split-before dup , split-after
-        ] curry* each
+        ] with each
     ] { } make { t } split [ empty? not ] subset ;
 
 : break-group? ( seq -- ? )
index 91b4300d3253275159df1f1e6e56145da97ea302..d4b56332105ccfb11df5642b2c661aaf33097b17 100755 (executable)
@@ -421,13 +421,13 @@ PRIVATE>
     ] keep { } like ; inline
 
 : index ( obj seq -- n )
-    [ = ] curry* find drop ;
+    [ = ] with find drop ;
 
 : index* ( obj i seq -- n )
     rot [ = ] curry find* drop ;
 
 : last-index ( obj seq -- n )
-    [ = ] curry* find-last drop ;
+    [ = ] with find-last drop ;
 
 : last-index* ( obj i seq -- n )
     rot [ = ] curry find-last* drop ;
@@ -436,13 +436,13 @@ PRIVATE>
     find drop >boolean ; inline
 
 : member? ( obj seq -- ? )
-    [ = ] curry* contains? ;
+    [ = ] with contains? ;
 
 : memq? ( obj seq -- ? )
-    [ eq? ] curry* contains? ;
+    [ eq? ] with contains? ;
 
 : remove ( obj seq -- newseq )
-    [ = not ] curry* subset ;
+    [ = not ] with subset ;
 
 : cache-nth ( i seq quot -- elt )
     pick pick ?nth dup [
@@ -666,7 +666,7 @@ PRIVATE>
 : flip ( matrix -- newmatrix )
     dup empty? [
         dup [ length ] map infimum
-        [ <column> dup like ] curry* map
+        [ <column> dup like ] with map
     ] unless ;
 
 : sequence-hashcode-step ( oldhash newpart -- newhash )
@@ -678,4 +678,4 @@ PRIVATE>
 : sequence-hashcode ( n seq -- x )
     0 -rot [
         hashcode* >fixnum sequence-hashcode-step
-    ] curry* each ; inline
+    ] with each ; inline
index 360d8b074b37b0d573ac350909aa4e23e2861ca7..743929ebdb19cb0acc1d72b115f7439f55e9e803 100755 (executable)
@@ -70,7 +70,7 @@ PREDICATE: word slot-writer "writing" word-prop >boolean ;
     2dup define-reader define-writer ;
 
 : define-slots ( class specs -- )
-    [ define-slot ] curry* each ;
+    [ define-slot ] with each ;
 
 : reader-word ( class name vocab -- word )
     >r >r "-" r> 3append r> create ;
@@ -93,11 +93,11 @@ PREDICATE: word slot-writer "writing" word-prop >boolean ;
     rot rot simple-writer-word over set-slot-spec-writer ;
 
 : simple-slots ( class slots base -- specs )
-    over length [ + ] curry* map
+    over length [ + ] with map
     [ >r >r dup r> r> simple-slot ] 2map nip ;
 
 : slot-of-reader ( reader specs -- spec/f )
-    [ slot-spec-reader eq? ] curry* find nip ;
+    [ slot-spec-reader eq? ] with find nip ;
 
 : slot-of-writer ( writer specs -- spec/f )
-    [ slot-spec-writer eq? ] curry* find nip ;
+    [ slot-spec-writer eq? ] with find nip ;
index 4369a56d239b4bd13e195f342b3d0eab07b61a12..6eff703cbd3d761dbbaaee277a57e142510ccf25 100644 (file)
@@ -31,7 +31,7 @@ M: tuple class class-of-tuple ;
 
 : reshape-tuple ( oldtuple permutation -- newtuple )
     >r tuple>array 2 cut r>
-    [ [ swap ?nth ] [ drop f ] if* ] curry* map
+    [ [ swap ?nth ] [ drop f ] if* ] with map
     append (>tuple) ;
 
 : reshape-tuples ( class newslots -- )
@@ -41,14 +41,14 @@ M: tuple class class-of-tuple ;
 
 : old-slots ( class newslots -- seq )
     swap "slots" word-prop 1 tail-slice
-    [ slot-spec-name swap member? not ] curry* subset ;
+    [ slot-spec-name swap member? not ] with subset ;
 
 : forget-slots ( class newslots -- )
     dupd old-slots [
         2dup
         slot-spec-reader 2array forget
         slot-spec-writer 2array forget
-    ] curry* each ;
+    ] with each ;
 
 : check-shape ( class newslots -- )
     over tuple-class? [
@@ -131,7 +131,7 @@ M: tuple-class reset-class
     } reset-props ;
 
 M: object get-slots ( obj slots -- ... )
-    [ execute ] curry* each ;
+    [ execute ] with each ;
 
 M: object set-slots ( ... obj slots -- )
     <reversed> get-slots ;
index daa5658c07559293bccfb74eade0960c8d47fc49..910410c84c235d6d3c04de5777a2a165e50d4148 100755 (executable)
@@ -73,7 +73,7 @@ SYMBOL: load-vocab-hook
 
 : words-named ( str -- seq )
     dictionary get values
-    [ vocab-words at ] curry* map
+    [ vocab-words at ] with map
     [ ] subset ;
 
 : child-vocab? ( prefix name -- ? )
@@ -81,7 +81,7 @@ SYMBOL: load-vocab-hook
     [ 2drop t ] [ swap CHAR: . add head? ] if ;
 
 : child-vocabs ( vocab -- seq )
-    vocab-name vocabs [ child-vocab? ] curry* subset ;
+    vocab-name vocabs [ child-vocab? ] with subset ;
 
 TUPLE: vocab-link name root ;
 
index e05fc0009ae8488ca09e37d58a3e855863871cd4..a2d9234353b1f6f3c75f76db8462a075295a38e6 100755 (executable)
@@ -50,7 +50,7 @@ M: primitive definition drop f ;
     [ pick word-props ?set-at swap set-word-props ]
     [ nip remove-word-prop ] if ;
 
-: reset-props ( word seq -- ) [ remove-word-prop ] curry* each ;
+: reset-props ( word seq -- ) [ remove-word-prop ] with each ;
 
 : lookup ( name vocab -- word ) vocab-words at ;
 
index 4842f8b7ae6a714921cbe3f551a6b125741208a5..4540b7b2aa9b2c0a7fbb35066f2ee181ecb82e55 100644 (file)
@@ -19,7 +19,7 @@ SYMBOL: alarm-looper
     alarms get-global push ;
 
 : remove-alarm ( alarm -- )
-    alarms get-global remove alarms set-global ;
+    alarms get-global delete ;
 
 : handle-alarm ( alarm -- )
     dup delegate {
@@ -29,11 +29,11 @@ SYMBOL: alarm-looper
 
 : expired-alarms ( -- seq )
     now alarms get-global
-    [ alarm-time <=> 0 > ] curry* subset ;
+    [ alarm-time <=> 0 > ] with subset ;
 
 : unexpired-alarms ( -- seq )
     now alarms get-global
-    [ alarm-time <=> 0 <= ] curry* subset ;
+    [ alarm-time <=> 0 <= ] with subset ;
 
 : call-alarm ( alarm -- )
     alarm-quot spawn drop ;
index fb8061785304acca83c21a30132acee0751f5b11..732033fb7529baaf15584158626ef1821547460a 100644 (file)
@@ -69,7 +69,7 @@ VARS: width height ;
 
 : center-i ( -- i ) width> 2 / >fixnum ;
 
-: center-line ( -- line ) center-i width> [ = 1 0 ? ] curry* map ;
+: center-line ( -- line ) center-i width> [ = 1 0 ? ] with map ;
 
 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
index f338786f853592d546cc98a5287eeafe3b7b5165..2c393c61e2ed987de9289b88e9f77acc34a8ab60 100644 (file)
@@ -20,7 +20,7 @@ IN: base64
     } nth ;
 
 : encode3 ( seq -- seq )
-    be> 4 [ 3 swap - -6 * shift HEX: 3f bitand ch>base64 ] curry* map ;
+    be> 4 [ 3 swap - -6 * shift HEX: 3f bitand ch>base64 ] with map ;
 
 : decode4 ( str -- str )
     [ base64>ch ] map 0 [ swap 6 shift bitor ] reduce 3 >be ;
index f2101f9700ebb20eee68b9dd4ca752fd3d0d511c..4aacadff235c3b7f35649cb3cab3fc2a20a64747 100755 (executable)
@@ -21,7 +21,7 @@ math.functions math.parser io.files colors.hsv ;
     dup [
         360 * swap 1+ / sat val
         3array hsv>rgb first3 scale-rgb
-    ] curry* map ;
+    ] with map ;
 
 : iter ( c z nb-iter -- x )
     over absq 4.0 >= over zero? or
index 664b988e016736e06ad053d3e45ad602a1cd719e..b4bb1fa8d2235567b2d79acd5440d3d456a166de 100644 (file)
@@ -54,7 +54,7 @@ HINTS: gregory fixnum ;
     standard-table-style [
         functions [
             [ tuck execute pprint-cell pprint-cell ] with-row
-        ] curry* each
+        ] with each
     ] tabular-output ;
 
 : partial-sums-main 2500000 partial-sums ;
index b277b08d796d3db7965f86ccfc01d5631d60614f..127392d237c52116f823ecb6b588dbe84ae77f94 100644 (file)
@@ -136,23 +136,23 @@ DEFER: create ( level c r -- scene )
     [ oversampling /f ] 2apply 0.0 3float-array ;
 
 : ss-grid ( -- ss-grid )
-    oversampling [ oversampling [ ss-point ] curry* map ] map ;
+    oversampling [ oversampling [ ss-point ] with map ] map ;
 
 : ray-grid ( point ss-grid -- ray-grid )
     [
-        [ v+ normalize { 0.0 0.0 -4.0 } swap <ray> ] curry* map
-    ] curry* map ;
+        [ v+ normalize { 0.0 0.0 -4.0 } swap <ray> ] with map
+    ] with map ;
 
 : ray-pixel ( scene point -- n )
     ss-grid ray-grid 0.0 -rot
-    [ [ swap cast-ray + ] curry* each ] curry* each ;
+    [ [ swap cast-ray + ] with each ] with each ;
 
 : pixel-grid ( -- grid )
     size reverse [
         size [
             [ size 0.5 * - ] 2apply swap size
             3float-array
-        ] curry* map
+        ] with map
     ] map ;
 
 : pgm-header ( w h -- )
@@ -161,7 +161,7 @@ DEFER: create ( level c r -- scene )
 : pgm-pixel ( n -- ) 255 * 0.5 + >fixnum , ;
 
 : ray-trace ( scene -- pixels )
-    pixel-grid [ [ ray-pixel ] curry* map ] curry* map ;
+    pixel-grid [ [ ray-pixel ] with map ] with map ;
 
 : run ( -- string )
     levels { 0.0 -1.0 0.0 } 1.0 create ray-trace [
index b727fdbaceadb6022ca27e050a4f00c63c93d0a4..5ce087dc6295d148e9aedde30fd24125acecdbc4 100644 (file)
@@ -80,7 +80,7 @@ M: check< summary drop "Number exceeds upper bound" ;
     [ ":" split1 string>number [ dup length ] unless* ] { } map>assoc ;
 
 : define-slots ( prefix names quots -- )
-    >r [ "-" swap 3append create-in ] curry* map r>
+    >r [ "-" swap 3append create-in ] with map r>
     [ define-compound ] 2each ;
 
 : define-accessors ( classname slots -- )
index 2a466795d3de63f4dc893023dbc827e48e7a02d2..611e00a9b4af04eb2ce5326409ec542b57a46cf0 100644 (file)
@@ -117,7 +117,7 @@ over boid-vel -rot relative-position angle-between ;
   <--&& ;
 
 : cohesion-neighborhood ( self -- boids )
-  boids> [ within-cohesion-neighborhood? ] curry* subset ;
+  boids> [ within-cohesion-neighborhood? ] with subset ;
 
 : cohesion-force ( self -- force )
   dup cohesion-neighborhood
@@ -137,7 +137,7 @@ over boid-vel -rot relative-position angle-between ;
   <--&& ;
 
 : separation-neighborhood ( self -- boids )
-  boids> [ within-separation-neighborhood? ] curry* subset ;
+  boids> [ within-separation-neighborhood? ] with subset ;
 
 : separation-force ( self -- force )
   dup separation-neighborhood
@@ -157,7 +157,7 @@ over boid-vel -rot relative-position angle-between ;
   <--&& ;
 
 : alignment-neighborhood ( self -- boids )
-boids> [ within-alignment-neighborhood? ] curry* subset ;
+boids> [ within-alignment-neighborhood? ] with subset ;
 
 : alignment-force ( self -- force )
   alignment-neighborhood
index 63c7532b61614efea086ac2082df09afd7815c32..79c671c6b85532f876a40db545f152aebb33598a 100755 (executable)
@@ -278,10 +278,10 @@ M: timestamp <=> ( ts1 ts2 -- n )
     [
         [ 1+ print-day ] keep
         1+ + 7 mod zero? [ nl ] [ bl ] if
-    ] curry* each nl ;
+    ] with each nl ;
 
 : print-year ( year -- )
-    12 [ 1+ print-month nl ] curry* each ;
+    12 [ 1+ print-month nl ] with each ;
 
 : pad-00 number>string 2 CHAR: 0 pad-left write ;
 
index 20e32383a7cc0378952339e2d819bd3ecefa545e..4f41512928180f4c06643757157662e14adde088 100644 (file)
@@ -40,7 +40,7 @@ IN: catalyst-talk
 : strip-tease ( data -- seq )
     dup third length 1 - [
         2 + (strip-tease)
-    ] curry* map ;
+    ] with map ;
 
 : STRIP-TEASE:
     parse-definition strip-tease [ parsed ] each ; parsing
index dcf499304b8e48fb70aa6412a7a7ce592240c18d..33d635c8b742509c5d4d601b28f8fe890d2eda07 100755 (executable)
@@ -161,7 +161,7 @@ H{
 
 : method-arg-types ( method -- args )
     dup method_getNumberOfArguments
-    [ method-arg-type parse-objc-type ] curry* map ;
+    [ method-arg-type parse-objc-type ] with map ;
 
 : method-return-type ( method -- ctype )
     #! Undocumented hack! Apple does not support this feature!
index e9bf49b15ab4c43a8892131e4223113e23885b1d..06f054928cfd5fefd04047978e65b039f7a73dcc 100755 (executable)
@@ -35,7 +35,7 @@ MACRO: nkeep ( n -- )
 
 MACRO: ncurry ( n -- ) [ curry ] n*quot ;
 
-MACRO: ncurry* ( quot n -- )
+MACRO: nwith ( quot n -- )
   tuck 1+ dup
   [ , -nrot [ , nrot , call ] , ncurry ]
   bake ;
@@ -53,17 +53,17 @@ MACRO: napply ( n -- )
 
 ! each-with
 
-: each-withn ( seq quot n -- ) ncurry* each ; inline
+: each-withn ( seq quot n -- ) nwith each ; inline
 
-: each-with ( seq quot -- ) curry* each ; inline
+: each-with ( seq quot -- ) with each ; inline
 
 : each-with2 ( obj obj list quot -- ) 2 each-withn ; inline
 
 ! map-with
 
-: map-withn ( seq quot n -- newseq ) ncurry* map ; inline
+: map-withn ( seq quot n -- newseq ) nwith map ; inline
 
-: map-with ( seq quot -- ) curry* map ; inline
+: map-with ( seq quot -- ) with map ; inline
 
 : map-with2 ( obj obj list quot -- newseq ) 2 map-withn ; inline
 
index 65035480b20a4d0c1f7950f4d3f285cffa153a3d..acc0e48aaf19904ddccbd3f805d0773567c9e792 100755 (executable)
@@ -10,7 +10,7 @@ IN: contributors
 
 : patch-counts ( authors -- assoc )
     dup prune
-    [ dup rot [ = ] curry* count ] curry*
+    [ dup rot [ = ] with count ] with
     { } map>assoc ;
 
 : contributors ( -- )
index 457abdafca9d141cc4d90ebb4605a98a0a997c62..4abbeafe57e71d028502266fa735cb18d0b329fb 100644 (file)
@@ -34,7 +34,7 @@ FUNCTION: bool CFBundleLoadExecutable ( void* bundle ) ;
 FUNCTION: void CFRelease ( void* cf ) ;
 
 : CF>array ( alien -- array )
-    dup CFArrayGetCount [ CFArrayGetValueAtIndex ] curry* map ;
+    dup CFArrayGetCount [ CFArrayGetValueAtIndex ] with map ;
 
 : <CFArray> ( seq -- alien )
     [ f swap length f CFArrayCreateMutable ] keep
index dfc5b10f7a578cc28a90e1cd0e70205761e216c6..e7ecc4e151a4de3221e452fc443b2c048ffe894d 100644 (file)
@@ -59,7 +59,7 @@ SYMBOL: K
 
 : make-w ( str -- )
     #! compute w, steps a-b of RFC 3174, section 6.1
-    16 [ nth-int-be w get push ] curry* each
+    16 [ nth-int-be w get push ] with each
     16 80 dup <slice> [ sha1-W w get push ] each ;
 
 : init-letters ( -- )
index dd72bfc228c96afa44b7a2e14eca07522fa5b338..8e7710f40fb06ad29c55e2b75225a92266837197 100644 (file)
@@ -71,7 +71,7 @@ SYMBOL: >word
     word-size get group [ be> ] map block-size get 0 pad-right
     dup 16 64 dup <slice> [
         process-M-256
-    ] curry* each ;
+    ] with each ;
 
 : ch ( x y z -- x' )
     [ bitxor bitand ] keep bitxor ;
@@ -115,7 +115,7 @@ SYMBOL: >word
     H get clone vars set
     prepare-message-schedule block-size get [
         T1 T2 update-vars
-    ] curry* each vars get H get [ w+ ] 2map H set ;
+    ] with each vars get H get [ w+ ] 2map H set ;
 
 : seq>string ( n seq -- string )
     [ swap [ >be % ] curry each ] "" make ;
index 97433d247fa31fd65a2418fed9adf27ae39a47ca..19fca8b24c238137543db39eeb2ed1089bfdb202 100755 (executable)
@@ -25,7 +25,7 @@ TUPLE: document locs ;
 : remove-loc document-locs delete ;
 
 : update-locs ( loc document -- )
-    document-locs [ set-model ] curry* each ;
+    document-locs [ set-model ] with each ;
 
 : doc-line ( n document -- string ) model-value nth ;
 
index 1968a9e5f447095876e812fa6bce381742c5325c..7ad3900163a0ffcc13281bba8f03a3d6fbfeb6aa 100644 (file)
@@ -68,7 +68,7 @@ TUPLE: faq header lists ;
 C: <faq> faq
 
 : html>faq ( div -- faq )
-    unclip swap { "h3" "ol" } [ tags-named ] curry* map
+    unclip swap { "h3" "ol" } [ tags-named ] with map
     first2 >r f add* r> [ html>question-list ] 2map <faq> ;
 
 : header, ( faq -- )
index 6a14d40cde26173283db7f119b800ddd5ae9b404..4afbd653bd37d68417cb8b4ded7e350e183aa2f5 100644 (file)
@@ -12,7 +12,7 @@ TUPLE: test-tuple m n ;
     { 3 }
 ] [
     H{ { "n" "3" } } { { "n" v-number } }
-    [ action-param drop ] curry* map
+    [ action-param drop ] with map
 ] unit-test
 
 : foo ;
index e745e28ad5d6f897e17c15d4d131dfe3416475f3..09c175f94c4c42888a11886a3ad8ef46fb13bac9 100644 (file)
@@ -55,7 +55,7 @@ SYMBOL: validation-errors
         ] [
             nip
         ] if*
-    ] curry* map ;
+    ] with map ;
 
 : expire-sessions ( -- )
     sessions get-global
index f56c1f8c294da397be2805096a73ae61ebd07438..9dd3a747ed171d76f04c6957a1f8eebd6a96c500 100644 (file)
@@ -42,7 +42,7 @@ dup color gl-color dup radius swap center disk ;
 
 : dot ( quadric i -- ) 2dup rim inner ;
 
-: golden-section ( quadric -- ) 720 [ dot ] curry* each ;
+: golden-section ( quadric -- ) 720 [ dot ] with each ;
 
 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
index 9b3932a3a475f37ab4c3abdae1c7f9f21face613..ee350939298c3d8a9f9e7b6cb21b41b159dbf3b4 100755 (executable)
@@ -16,4 +16,4 @@ IN: hashtables.lib
 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
 : set-hash-stack ( value key seq -- )
-  dupd [ key? ] curry* find-last nip set-at ;
+  dupd [ key? ] with find-last nip set-at ;
index d7f4ec8b1b8b54f5a13e3fad04138add21e181f7..e347fde051e6e7c4c2d71cc16a3551e31dc10d29 100644 (file)
@@ -17,7 +17,7 @@ M: link uses
     [ dup ] [ [ article-parent ] keep ] [ ] unfold nip 1 tail ;
 
 : set-article-parents ( parent article -- )
-    article-children [ set-article-parent ] curry* each ;
+    article-children [ set-article-parent ] with each ;
 
 : xref-article ( topic -- )
     dup >link xref dup set-article-parents ;
index 0fb6b728050a494405b666dcc02d37a2f1ced3a4..bb2d6335457f2b542b737303328248864523441c 100755 (executable)
@@ -334,7 +334,7 @@ ARTICLE: "changes" "Changes in the latest release"
 }
 { $subheading "Performance" }
 { $list
-    { "The " { $link curry } " word now runs in constant time, and curried quotations can be called from compiled code; this allows for abstractions and idioms which were previously impractical due to performance issues. In particular, words such as " { $snippet "each-with" } " and " { $snippet "map-with" } " are gone; " { $snippet "each-with" } " can now be written as " { $snippet "curry* each" } ", and similarly for other " { $snippet "-with" } " combinators." }
+    { "The " { $link curry } " word now runs in constant time, and curried quotations can be called from compiled code; this allows for abstractions and idioms which were previously impractical due to performance issues. In particular, words such as " { $snippet "each-with" } " and " { $snippet "map-with" } " are gone; " { $snippet "each-with" } " can now be written as " { $snippet "with each" } ", and similarly for other " { $snippet "-with" } " combinators." }
     "Improved generational promotion strategy in garbage collector reduces the amount of junk which makes its way into tenured space, which in turn reduces the frequency of full garbage collections."
     "Faster generic word dispatch and union membership testing."
     { "Alien memory accessors (" { $link "reading-writing-memory" } ") are compiled as intrinsics where possible, which improves performance in code which iteroperates with C libraries." }
index 52bc75780ccfdb4d912217da7820183f92ddacaa..5d90fd367c6e45854590820d176aeb3b90e93da0 100644 (file)
@@ -341,12 +341,12 @@ M: word slot-specs "slots" word-prop ;
 
 GENERIC: elements* ( elt-type element -- )
 
-M: simple-element elements* [ elements* ] curry* each ;
+M: simple-element elements* [ elements* ] with each ;
 
 M: object elements* 2drop ;
 
 M: array elements*
-    [ [ elements* ] curry* each ] 2keep
+    [ [ elements* ] with each ] 2keep
     [ first eq? ] keep swap [ , ] [ drop ] if ;
 
 : elements ( elt-type element -- seq ) [ elements* ] { } make ;
index 6def0089c9bfeb37faf04d9c6235e232634441ab..391737ca61966aa7ac323bc1e326b3f992ab19bf 100755 (executable)
@@ -170,8 +170,8 @@ M: html-stream stream-write-table ( grid style stream -- )
                 <td "top" =valign swap table-style =style td>
                     >string write-html
                 </td>
-            ] curry* each </tr>
-        ] curry* each </table>
+            ] with each </tr>
+        ] with each </table>
     ] with-stream* ;
 
 M: html-stream make-cell-stream ( style stream -- stream' )
index 168c2002a8aa4ca91a35fc8228e3b0b09038d72d..dfb4552e033eded739f413f1635c17a5c9d95235 100755 (executable)
@@ -19,36 +19,36 @@ IN: html.parser.analyzer
     ] map ;
 
 : find-by-id ( id vector -- vector )
-    [ tag-attributes "id" swap at = ] curry* subset ;
+    [ tag-attributes "id" swap at = ] with subset ;
 
 : find-by-class ( id vector -- vector )
-    [ tag-attributes "class" swap at = ] curry* subset ;
+    [ tag-attributes "class" swap at = ] with subset ;
 
 : find-by-name ( str vector -- vector )
     >r >lower r>
-    [ tag-name = ] curry* subset ;
+    [ tag-name = ] with subset ;
 
 : find-first-name ( str vector -- i/f tag/f )
     >r >lower r>
-    [ tag-name = ] curry* find ;
+    [ tag-name = ] with find ;
 
 : find-matching-close ( str vector -- i/f tag/f )
     >r >lower r>
-    [ [ tag-name = ] keep tag-closing? and ] curry* find ;
+    [ [ tag-name = ] keep tag-closing? and ] with find ;
 
 : find-by-attribute-key ( key vector -- vector )
     >r >lower r>
-    [ tag-attributes at ] curry* subset
+    [ tag-attributes at ] with subset
     [ ] subset ;
 
 : find-by-attribute-key-value ( value key vector -- vector )
     >r >lower r>
-    [ tag-attributes at over = ] curry* subset nip
+    [ tag-attributes at over = ] with subset nip
     [ ] subset ;
 
 : find-first-attribute-key-value ( value key vector -- i/f tag/f )
     >r >lower r>
-    [ tag-attributes at over = ] curry* find rot drop ;
+    [ tag-attributes at over = ] with find rot drop ;
 
 : find-between ( i/f tag/f vector -- vector )
     pick integer? [
@@ -69,7 +69,7 @@ IN: html.parser.analyzer
 ! : find-last-tag ( name vector -- index tag )
     ! [
         ! dup tag-matched? [ 2drop f ] [ tag-name = ] if
-    ! ] curry* find-last ;
+    ! ] with find-last ;
 
 ! : find-last-tag* ( name n vector -- tag )
     ! 0 -rot <slice> find-last-tag ;
index 3afb1106871465d3f984365d3966f4d99d90bea2..3740382e5812d611a48f97540189179d138a603c 100644 (file)
@@ -8,7 +8,7 @@ IN: io.paths
 
 <PRIVATE
 : append-path ( path files -- paths )
-    [ path+ ] curry* map ;
+    [ path+ ] with map ;
 
 : get-paths ( dir -- paths )
     dup directory keys append-path ;
index 7a97578a9cc78a486817df26b1f718d2b78cefe4..faf1280f7cf17d4de4c33aceed7f314e5ed958e3 100755 (executable)
@@ -75,7 +75,7 @@ SYMBOL: terms
     [ natural-sort ] keep [ index ] curry map ;
 
 : (inversions) ( n seq -- n )
-    [ > ] curry* subset length ;
+    [ > ] with subset length ;
 
 : inversions ( seq -- n )
     0 swap [ length ] keep [
@@ -155,15 +155,15 @@ DEFER: (d)
     ] map [ ] subset 2nip ;
 
 : basis ( generators -- seq )
-    natural-sort dup length 2^ [ nth-basis-elt ] curry* map ;
+    natural-sort dup length 2^ [ nth-basis-elt ] with map ;
 
 : (tensor) ( seq1 seq2 -- seq )
     [
         [ swap append natural-sort ] curry map
-    ] curry* map concat ;
+    ] with map concat ;
 
 : tensor ( graded-basis1 graded-basis2 -- bigraded-basis )
-    [ [ swap (tensor) ] curry map ] curry* map ;
+    [ [ swap (tensor) ] curry map ] with map ;
 
 ! Computing cohomology
 : (op-matrix) ( range quot basis-elt -- row )
@@ -201,7 +201,7 @@ DEFER: (d)
         over first length [
             >r 2dup r> spin (bigraded-ker/im-d)
         ] map 2nip
-    ] curry* map ;
+    ] with map ;
 
 : bigraded-betti ( u-generators z-generators -- seq )
     [ basis graded ] 2apply tensor bigraded-ker/im-d
@@ -241,14 +241,14 @@ DEFER: (d)
     ] [
         nullspace [
             [ [ wedge (alt+) ] 2each ] with-terms
-        ] curry* map
+        ] with map
     ] if ;
 
 : graded-triple ( seq n -- triple )
-    3 [ 1- + ] curry* map swap [ ?nth ] curry map ;
+    3 [ 1- + ] with map swap [ ?nth ] curry map ;
 
 : graded-triples ( seq -- triples )
-    dup length [ graded-triple ] curry* map ;
+    dup length [ graded-triple ] with map ;
 
 : graded-laplacian ( generators quot -- seq )
     >r basis graded graded-triples [ first3 ] r> compose map ;
@@ -279,7 +279,7 @@ DEFER: (d)
         over first length [
             >r 2dup r> spin bigraded-triple
         ] map 2nip
-    ] curry* map ;
+    ] with map ;
 
 : bigraded-laplacian ( u-generators z-generators quot -- seq )
     >r [ basis graded ] 2apply tensor bigraded-triples r>
index 763df60cdc6bf27476ed8cab3ebe421c69f5ad19..192e4053d49055290dcc6fe753bab64855524515 100644 (file)
@@ -9,10 +9,10 @@ IN: lcd
     } nth >r 4 * dup 4 + r> subseq ;
 
 : lcd-row ( num row -- )
-    swap [ CHAR: 0 - swap lcd-digit write ] curry* each ;
+    swap [ CHAR: 0 - swap lcd-digit write ] with each ;
 
 : lcd ( digit-str -- )
-    3 [ lcd-row nl ] curry* each ;
+    3 [ lcd-row nl ] with each ;
 
 : lcd-demo ( -- ) "31337" lcd ;
 
index 4ea4a333e13a82942a80abe7b0d3cbc814bc9e6f..07e16fb8628da826e7976e1c0353bb6884597753 100644 (file)
@@ -4,7 +4,7 @@ USING: arrays help io kernel math namespaces sequences ;
 IN: levenshtein
 
 : <matrix> ( m n -- matrix )
-    [ drop 0 <array> ] curry* map ; inline
+    [ drop 0 <array> ] with map ; inline
 
 : matrix-> nth nth ; inline
 : ->matrix nth set-nth ; inline
@@ -23,7 +23,7 @@ SYMBOL: costs
 
 : compute-costs ( str1 str2 -- )
     swap [
-        [ = 0 1 ? ] curry* { } map-as
+        [ = 0 1 ? ] with { } map-as
     ] curry { } map-as costs set ; inline
 
 : levenshtein-step ( i j -- )
@@ -41,6 +41,6 @@ SYMBOL: costs
         2dup compute-costs
         [ length ] 2apply [
             [ levenshtein-step ] curry each
-        ] curry* each
+        ] with each
         levenshtein-result
     ] with-scope ;
index 75f6abb9ae36544e397d7c287a1beac29f69f50b..9299e6075e8200f1efc02f889b2bc289d4015749 100644 (file)
@@ -112,7 +112,7 @@ M: object lint ( obj -- seq )
 M: callable lint ( quot -- seq )
     def-hash-keys get [
         swap subseq/member?
-    ] curry* subset ;
+    ] with subset ;
 
 M: word lint ( word -- seq )
     word-def dup callable? [ lint ] [ drop f ] if ;
index f13081d6a39135f63908bf0aba1f61a2273a5dfa..2650e9ce235be9a5a99994f02b7da47e239a99d8 100644 (file)
@@ -7,7 +7,7 @@ IN: lisp
 
 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
-: && ( obj seq -- ? ) [ call ] curry* all? ;
+: && ( obj seq -- ? ) [ call ] with all? ;
 
 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
index dfe16dd4ec8e8360d212783cb0b0a01bbea17443..23eb0063ae75f17965408da00fff66d9debfdfed 100755 (executable)
@@ -57,7 +57,7 @@ C: <quote> quote
 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
 : local-index ( obj args -- n )
-    [ dup quote? [ quote-local ] when eq? ] curry* find drop ;
+    [ dup quote? [ quote-local ] when eq? ] with find drop ;
 
 : read-local ( obj args -- quot )
     local-index 1+
index b48f600b73379dfa106c65770c5d15809914f541..bde5cad7a019015d2bc2fde67ef8ec29d5838c5d 100644 (file)
@@ -16,7 +16,7 @@ IN: math.analysis
     } ; inline
 
 : gamma-z ( x n -- seq )
-    [ + recip ] curry* map 1.0 0 pick set-nth ;
+    [ + recip ] with map 1.0 0 pick set-nth ;
 
 : (gamma-lanczos6) ( x -- log[gamma[x+1]] )
     #! log(gamma(x+1)
index 9b9ad5346933905e370a326489107a8e8171071f..5b805fa260bbfa8de398d79ff53f61c244791c13 100644 (file)
@@ -39,5 +39,5 @@ PRIVATE>
   dup 1000003 < [
     0 primes-under-million seq>list swap [ <= ] curry lwhile
   ] [
-    <erato> 2 [ drop next-prime ] curry* lfrom-by [ ] lwhile
+    <erato> 2 [ drop next-prime ] with lfrom-by [ ] lwhile
   ] if ;
index 6b5215350c9b99df83b00f6b27fb5afc2476c24b..625be534ce026242eb422311f8d8adc02d4388ec 100644 (file)
@@ -4,7 +4,7 @@ USING: arrays sequences math math.vectors math.constants
 math.functions kernel splitting ;
 IN: math.fft
 
-: n^v ( n v -- w ) [ ^ ] curry* map ;
+: n^v ( n v -- w ) [ ^ ] with map ;
 : even ( seq -- seq ) 2 group 0 <column> ;
 : odd ( seq -- seq ) 2 group 1 <column> ;
 DEFER: fft
index c133bd7063e5468cf3e7ff61039cb5196a9d2d22..df9a87fb40284b5c93f218fe946b28c2e3b7082a 100644 (file)
@@ -10,14 +10,14 @@ IN: math.matrices
 
 : identity-matrix ( n -- matrix )
     #! Make a nxn identity matrix.
-    dup [ [ = 1 0 ? ] curry* map ] curry map ;
+    dup [ [ = 1 0 ? ] with map ] curry map ;
 
 ! Matrix operations
 : mneg ( m -- m ) [ vneg ] map ;
 
-: n*m ( n m -- m ) [ n*v ] curry* map ;
+: n*m ( n m -- m ) [ n*v ] with map ;
 : m*n ( m n -- m ) [ v*n ] curry map ;
-: n/m ( n m -- m ) [ n/v ] curry* map ;
+: n/m ( n m -- m ) [ n/v ] with map ;
 : m/n ( m n -- m ) [ v/n ] curry map ;
 
 : m+   ( m m -- m ) [ v+ ] 2map ;
@@ -25,7 +25,7 @@ IN: math.matrices
 : m*   ( m m -- m ) [ v* ] 2map ;
 : m/   ( m m -- m ) [ v/ ] 2map ;
 
-: v.m ( v m -- v ) flip [ v. ] curry* map ;
+: v.m ( v m -- v ) flip [ v. ] with map ;
 : m.v ( m v -- v ) [ v. ] curry map ;
 : m.  ( m m -- m ) flip [ swap m.v ] curry map ;
 
index ea2f30bdc1a48f34eacbf2d20cb50c9b4136e7e1..cd20216ff9bdb4b560d7d020e64d2234c22ad3ca 100644 (file)
@@ -86,5 +86,5 @@ TUPLE: miller-rabin-bounds ;
 : unique-primes ( numbits n -- seq )
     #! generate two primes
     over 5 < [ "not enough primes below 5 bits" throw ] when
-    [ [ drop random-prime ] curry* map ] [ all-unique? ] generate ;
+    [ [ drop random-prime ] with map ] [ all-unique? ] generate ;
 
index 2643df15dab9de201465fcebc5e3fdf2afa4b188..8e16f2b087c65bf275161e06c426323f789625be 100644 (file)
@@ -32,7 +32,7 @@ IN: math.statistics
     dup length 1 <= [
         drop 0
     ] [
-        [ [ mean ] keep [ - sq ] curry* sigma ] keep
+        [ [ mean ] keep [ - sq ] with sigma ] keep
         length 1- /
     ] if ;
 
index 6cabe02279a9ab4ac60c1a78bfa73edcf5ba0c5f..b2a8995df0da5a765f3bf21a39a75b0f10ec7ef8 100755 (executable)
@@ -7,9 +7,9 @@ IN: math.vectors
 : vneg ( u -- v ) [ neg ] map ;
 
 : v*n ( u n -- v ) [ * ] curry map ;
-: n*v ( n u -- v ) [ * ] curry* map ;
+: n*v ( n u -- v ) [ * ] with map ;
 : v/n ( u n -- v ) [ / ] curry map ;
-: n/v ( n u -- v ) [ / ] curry* map ;
+: n/v ( n u -- v ) [ / ] with map ;
 
 : v+   ( u v -- w ) [ + ] 2map ;
 : v-   ( u v -- w ) [ - ] 2map ;
index 6af04ddfb493aadfdf73ef8851481b10c40c6276..14a493cec5744e3d0ed6d90dc8bc76d719e4ea3b 100644 (file)
@@ -16,7 +16,7 @@ SYMBOL: visited
 
 : choices ( cell -- seq )
     { { -1 0 } { 1 0 } { 0 -1 } { 0 1 } }
-    [ v+ ] curry* map
+    [ v+ ] with map
     [ unvisited? ] subset ;
 
 : random-neighbour ( cell -- newcell ) choices random ;
@@ -43,7 +43,7 @@ SYMBOL: visited
     line-width 2 - glLineWidth
     line-width 2 - glPointSize
     1.0 1.0 1.0 1.0 glColor4d
-    dup [ drop t <array> ] curry* map visited set
+    dup [ drop t <array> ] with map visited set
     GL_LINE_STRIP glBegin
     { 0 0 } dup vertex (draw-maze)
     glEnd ;
index 42f9372740f1bf683161c4e92c9c11f32f069eac..a6f1f6909a4307d87b7c4f120f6875da678dbe6c 100755 (executable)
@@ -44,7 +44,7 @@ DEFER: remove-connection
 : deactivate-model ( model -- )
     dup unref-model zero? [
         dup model-dependencies
-        [ dup deactivate-model remove-connection ] curry* each
+        [ dup deactivate-model remove-connection ] with each
     ] [
         drop
     ] if ;
@@ -71,7 +71,7 @@ GENERIC: update-model ( model -- )
 M: model update-model drop ;
 
 : notify-connections ( model -- )
-    dup model-connections [ model-changed ] curry* each ;
+    dup model-connections [ model-changed ] with each ;
 
 : set-model ( value model -- )
     dup model-locked? [
index e7ef0deb45eb7136c3b0c28c298d69d02359f77f..c7522e1db662bb57f9d6023b1e820384d5cee2d5 100644 (file)
@@ -180,7 +180,7 @@ empty-method-table empty-method-table 4array dup first set-global ;
 
 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
-: add-methods ( class seq -- ) 2 group [ first2 add-method ] curry* each ;
+: add-methods ( class seq -- ) 2 group [ first2 add-method ] with each ;
 
 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
index daa63a22258edf04b2188de72a97db35d49462bc..ca97eab3bc8b455696e18e681f57f9f758c3663c 100644 (file)
@@ -252,7 +252,7 @@ C: <field> field
   [\r
     dup odbc-number-of-columns [\r
       1+ odbc-get-field field-value ,\r
-    ] curry* each \r
+    ] with each \r
   ] { } make ;\r
 \r
 : (odbc-get-all-rows) ( statement -- )\r
index fbd935da4ce8e0b55d4c8471865346177e01ccf6..aabdccd1fb2dea28d967648264cb66c2f42ab21b 100644 (file)
@@ -70,7 +70,7 @@ IN: opengl
 
 : adjust-points [ [ 1 + 0.5 * ] map ] 2apply ;
 
-: scale-points 2array flip [ v* ] curry* map [ v+ ] curry* map ;
+: scale-points 2array flip [ v* ] with map [ v+ ] with map ;
 
 : circle-points ( loc dim steps -- points )
     circle-steps unit-circle adjust-points scale-points ;
index 2e7dc4a3c317b132a7d3da8a81640438c29ed3f4..9d85b6a77e9ac569e55321d824c27295292a4f3b 100644 (file)
@@ -54,7 +54,7 @@ SYMBOL: query-res
 
 : result>seq ( -- seq )
     query-res get [ PQnfields ] keep PQntuples
-    [ swap [ query-res get -rot PQgetvalue ] curry* map ] curry* map ;
+    [ swap [ query-res get -rot PQgetvalue ] with map ] with map ;
 
 : print-table ( seq -- )
     [ [ write bl ] each "\n" write ] each ;
index d85f592c75bc0865ea0d20a8553dd6657ac3e82f..e3c71ec80734097acc59fe40d64328b627dc5262 100644 (file)
@@ -7,7 +7,7 @@ IN: random-weighted
 : probabilities ( weights -- probabilities ) dup sum [ / ] curry map ;
 
 : layers ( probabilities -- layers )
-dup length 1+ [ head ] curry* map 1 tail [ sum ] map ;
+dup length 1+ [ head ] with map 1 tail [ sum ] map ;
 
 : random-weighted ( weights -- elt )
 probabilities layers [ 1000 * ] map 1000 random [ > ] curry find drop ;
index ff4487dd27cf58873dbcd45077b4c23159b7d8eb..6045da72d83514245e94cf37e4d40867c78a9253 100755 (executable)
@@ -65,7 +65,7 @@ SYMBOL: mt
 : init-mt-rest ( seq -- )
     mt-n 1 head* [
         [ init-mt-formula ] 2keep 1+ swap set-nth
-    ] curry* each ;
+    ] with each ;
 
 : mt-temper ( y -- yt )
     dup -11 shift bitxor
index 39018a9912205bf3536edaf5f8148524f32cbaf1..be2f648189598f1b3c6372b5a5deac8baeff09a5 100644 (file)
@@ -10,7 +10,7 @@ USING: xml.utilities kernel assocs xml.generator
     [ children>string ] [ f ] if* ;
 
 : any-tag-named ( tag names -- tag-inside )
-    f -rot [ tag-named nip dup ] curry* find 2drop ;
+    f -rot [ tag-named nip dup ] with find 2drop ;
 
 TUPLE: feed title link entries ;
 
index 1aefee732155756bb40c441835fb6283e733dbe9..e46ce3b107d0bf3316ee0ecf895ee99a634944c0 100755 (executable)
@@ -84,16 +84,16 @@ IN: sequences.lib
 
 <PRIVATE
 : translate-string ( n alphabet out-len -- seq )
-    [ drop /mod ] curry* map nip  ;
+    [ drop /mod ] with map nip  ;
 
 : map-alphabet ( alphabet seq[seq] -- seq[seq] )
-    [ [ swap nth ] curry* map ] curry* map ;
+    [ [ swap nth ] with map ] with map ;
 
 : exact-number-strings ( n out-len -- seqs )
     [ ^ ] 2keep [ translate-string ] 2curry map ;
 
 : number-strings ( n max-length -- seqs )
-    1+ [ exact-number-strings ] curry* map concat ;
+    1+ [ exact-number-strings ] with map concat ;
 PRIVATE>
 
 : exact-strings ( alphabet length -- seqs )
index 6cc8e60bb6c9d57d7d7cf15090df05c509d35e3d..03e1645870ac5259c1089277c6fafc5faadb1bba 100755 (executable)
@@ -22,7 +22,7 @@ SYMBOL: serialized
 
 : object-id ( obj -- id )
     #! Return the id of an already serialized object 
-    serialized get [ eq? ] curry* find [ drop f ] unless ;
+    serialized get [ eq? ] with find [ drop f ] unless ;
 
 USE: prettyprint 
 
index 95567da2efb121f42a54aba9a92f6c0a54714e78..01b5133a80cdfdcd285a8711e70746cf1ebcb352 100644 (file)
@@ -8,12 +8,12 @@ IN: shufflers
     first2 "-" swap 3append >string ;
 
 : make-shuffles ( max-out max-in -- shuffles )
-    [ 1+ dup rot strings [ 2array ] curry* map ]
-    curry* map concat ;
+    [ 1+ dup rot strings [ 2array ] with map ]
+    with map concat ;
 
 : shuffle>quot ( shuffle -- quot )
     [
-        first2 2dup [ - ] curry* map
+        first2 2dup [ - ] with map
         reverse [ , \ npick , \ >r , ] each
         swap , \ ndrop , length [ \ r> , ] times
     ] [ ] make ;
@@ -30,7 +30,7 @@ IN: shufflers
     in-shuffle over length make-shuffles [
         [ shuffle>string create-in ] keep
         shuffle>quot dupd define-compound put-effect
-    ] curry* each out-shuffle ;
+    ] with each out-shuffle ;
 
 : SHUFFLE:
     scan scan string>number define-shuffles ; parsing
index 41ba6143c909d0b3c6b4a36a1f60e6d9c661193d..7c54e72578aa24c1fe615e6ef020006034d8ac17 100644 (file)
@@ -212,8 +212,8 @@ gravity off
 
 ! Send the half of the snake in a random direction
 
-nodes> 10 [ swap nth ]      curry* map
-nodes> 10 [ 19 + swap nth ] curry* map append
+nodes> 10 [ swap nth ]      with map
+nodes> 10 [ 19 + swap nth ] with map append
 100 random -50 +   100 random 100 + { -1 1 } random *  2array
 [ swap set-node-vel ] curry
 each ;
index 7f80268035c97f66c28a1cbc48bae04e7791810c..c37a49d2b66b7291ae6afb67909e1c446578b291 100644 (file)
@@ -144,7 +144,7 @@ M: mapping select-sql ( tuple mapping -- select )
       ] [
         drop f
       ] if
-    ] curry* map [ ] subset dup length 0 > [
+    ] with map [ ] subset dup length 0 > [
       " where " % 
       " and " join % 
     ] [
@@ -173,7 +173,7 @@ M: mapping select-sql ( tuple mapping -- select )
     [ db-field-slot slot ] keep ! statement value field
     db-field-bind-name swap ! statement name value
     >r dupd r> sqlite-bind-text-by-name     
-  ] curry* each drop ;  
+  ] with each drop ;  
 
 : bind-for-select ( statement tuple -- )
   #! Bind the fields in the tuple to the fields in the 
@@ -186,7 +186,7 @@ M: mapping select-sql ( tuple mapping -- select )
     ] [ 
       2drop 
     ] if
-  ] curry* each drop ;  
+  ] with each drop ;  
 
 : bind-for-update ( statement tuple -- )
   #! Bind the fields in the tuple to the fields in the 
index 58ded0c9436c3fd0c73c153daee65a7d8dd5283e..13850f6bd770c0ef1f14137aa4493af7ec53ea42 100644 (file)
@@ -6,7 +6,7 @@ IN: tetris.board
 TUPLE: board width height rows ;
 
 : make-rows ( width height -- rows )
-    [ drop f <array> ] curry* map ;
+    [ drop f <array> ] with map ;
 
 : <board> ( width height -- board )
     2dup make-rows board construct-boa ;
@@ -31,7 +31,7 @@ TUPLE: board width height rows ;
     2dup block-in-bounds? [ block-free? ] [ 2drop f ] if ;
 
 : piece-valid? ( board piece -- ? )
-    piece-blocks [ location-valid? ] curry* all? ;
+    piece-blocks [ location-valid? ] with all? ;
 
 : row-not-full? ( row -- ? ) f swap member? ;
 
index 74c2f5f1cbbeb4af43b660cff95bde39dd2ec9ca..644a9be1b52e829b4bc022f255cfc67ecbf32b93 100644 (file)
@@ -68,7 +68,7 @@ TUPLE: tetris pieces last-update update-interval rows score game-state paused? r
     over tetris-rows + swap set-tetris-rows ;
 
 : lock-piece ( tetris -- )
-    [ dup tetris-current-piece piece-blocks [ add-block ] curry* each ] keep
+    [ dup tetris-current-piece piece-blocks [ add-block ] with each ] keep
     dup new-current-piece dup check-rows score-rows ;
 
 : can-rotate? ( tetris -- ? )
index f685b1218e4d94efd9be4d797e81675c639e6ec3..e3a510287b52db688654dd02e71840c3a6628e1b 100644 (file)
@@ -27,4 +27,4 @@ GENERIC: tick ( object -- )
     [ [ advance-timer ] keep timer-object tick ] [ 2drop ] if ;
 
 : do-timers ( -- )
-    millis timers values [ do-timer ] curry* each ;
+    millis timers values [ do-timer ] with each ;
index d7fbad67d00edaa6cbbd7b7f797d64b747523b17..370e55eb97d0066952cecaa49c9e69bfa5993ba2 100755 (executable)
@@ -70,14 +70,14 @@ M: vocab-link summary vocab-summary ;
     dup empty? [
         drop
     ] [
-        swap [ "." swap 3append ] curry* map
+        swap [ "." swap 3append ] with map
     ] if ;
 
 : vocabs-in-dir ( root name -- )
     dupd (all-child-vocabs) [
         2dup vocab-dir? [ 2dup swap >vocab-link , ] when
         vocabs-in-dir
-    ] curry* each ;
+    ] with each ;
 
 : sane-vocab-roots "." vocab-roots get remove ;
 
@@ -125,13 +125,13 @@ M: vocab-link summary vocab-summary ;
     [ vocab-root not ] subset
     [
         vocab-name swap ?head CHAR: . rot member? not and
-    ] curry* subset
+    ] with subset
     [ vocab ] map ;
 
 : all-child-vocabs ( prefix -- assoc )
     sane-vocab-roots [
         dup pick dupd (all-child-vocabs)
-        [ swap >vocab-link ] curry* map
+        [ swap >vocab-link ] with map
     ] { } map>assoc
     f rot unrooted-child-vocabs 2array add ;
 
index 4c19bbc8db0534e8bc02c6a62e2be332d9283699..bb15a3fa87193fa167543b29b09ccf9b1958ab35 100644 (file)
@@ -43,7 +43,7 @@ vectors words assocs combinators sorting ;
         runs [
             [ 0 [ pick score-1 max ] reduce nip ] keep
             length * +
-        ] curry* each
+        ] with each
     ] [
         2drop 0
     ] if ;
@@ -51,7 +51,7 @@ vectors words assocs combinators sorting ;
 : rank-completions ( results -- newresults )
     sort-keys <reversed>
     [ 0 [ first max ] reduce 3 /f ] keep
-    [ first < ] curry* subset
+    [ first < ] with subset
     [ second ] map ;
 
 : complete ( full short -- score )
@@ -66,7 +66,7 @@ vectors words assocs combinators sorting ;
     over empty? [
         nip [ first ] map
     ] [
-        >r >lower r> [ completion ] curry* map rank-completions
+        >r >lower r> [ completion ] with map rank-completions
     ] if ;
 
 : string-completions ( short strs -- seq )
index 71f5fc9cbeada9deb074e26a63a6b2464bef6233..dfb421c8f86dc283264bfae9e5687dfc0e222fbb 100644 (file)
@@ -14,12 +14,12 @@ IN: tools.crossref
 
 : (method-usage) ( word generic -- methods )
     tuck methods
-    [ second quot-uses key? ] curry* subset
+    [ second quot-uses key? ] with subset
     0 <column>
     swap [ 2array ] curry map ;
 
 : method-usage ( word seq -- methods )
-    [ generic? ] subset [ (method-usage) ] curry* map concat ;
+    [ generic? ] subset [ (method-usage) ] with map concat ;
 
 : compound-usage ( words -- seq )
     [ generic? not ] subset ;
index 4f3968a0f4679900f487edbd67c15fdc73a75e9c..d15757175783c7e84cd571eff086823b76445789 100755 (executable)
@@ -56,7 +56,7 @@ IN: tools.deploy.shaker
     [
         [ word-props strip-assoc f assoc-like ] keep
         set-word-props
-    ] curry* each ;
+    ] with each ;
 
 : retained-props ( -- seq )
     [
index 36630223468a96b8d464d635f7c4e45f29827358..01a7009ecdf0950bea7e7cc5049c8c408218f841 100755 (executable)
@@ -19,7 +19,7 @@ IN: tools.deploy.windows
         "factor-nt.dll"
     } [
         dup resource-path -rot path+ copy-file
-    ] curry* each ;
+    ] with each ;
 
 : create-exe-dir ( vocab bundle-name -- vm )
     dup copy-dlls
index eb2dafb1d29091d21ccb9425124fc7397572a94b..5075163802b9890bb94b8564084b6159da0bf6c3 100644 (file)
@@ -5,7 +5,7 @@ sequences random ;
 IN: temporary
 
 : randomize-numeric-splay-tree ( splay-tree -- )
-    100 [ drop 100 random swap at drop ] curry* each ;
+    100 [ drop 100 random swap at drop ] with each ;
 
 : make-numeric-splay-tree ( n -- splay-tree )
     <splay> [ [ dupd set-at ] curry each ] keep ;
index ddc90a8961423ded1697aac178aceff64627b737..6082f529ac3527015799b3f642f4ea75eddfa025 100644 (file)
@@ -10,7 +10,7 @@ IN: tuple-syntax
 : parse-slot-writer ( tuple -- slot-setter )
     scan dup "}" = [ 2drop f ] [
         1 head* swap class "slots" word-prop
-        [ slot-spec-name = ] curry* find nip slot-spec-writer
+        [ slot-spec-name = ] with find nip slot-spec-writer
     ] if ;
 
 : parse-slots ( accum tuple -- accum tuple )
index 0adc2d5c54bbe77a2e77be047b1cc91706cc0de2..9456c6fe69a5f0569210f8f5f2eb4b393858999c 100644 (file)
@@ -109,7 +109,7 @@ M: freetype-renderer open-font ( font -- open-font )
     ] cache-nth nip ;
 
 M: freetype-renderer string-width ( open-font string -- w )
-    0 -rot [ char-width + ] curry* each ;
+    0 -rot [ char-width + ] with each ;
 
 M: freetype-renderer string-height ( open-font string -- h )
     drop font-height ;
@@ -179,11 +179,11 @@ M: freetype-renderer draw-string ( font string loc -- )
     >r >r world get font-sprites first2 r> r> (draw-string) ;
 
 : run-char-widths ( open-font string -- widths )
-    [ char-width ] curry* { } map-as
+    [ char-width ] with { } map-as
     dup 0 [ + ] accumulate nip swap 2 v/n v+ ;
 
 M: freetype-renderer x>offset ( x open-font string -- n )
-    dup >r run-char-widths [ <= ] curry* find drop
+    dup >r run-char-widths [ <= ] with find drop
     [ r> drop ] [ r> length ] if* ;
 
 T{ freetype-renderer } font-renderer set-global
index 95b1eed89d72da198bfb9cc9263d8e4281ac9956..92520e0266d69a9235760ae3720fd69382bf9a9f 100755 (executable)
@@ -23,6 +23,6 @@ M: book pref-dim* gadget-children pref-dims max-dim ;
 
 M: book layout*
     dup rect-dim swap gadget-children
-    [ set-layout-dim ] curry* each ;
+    [ set-layout-dim ] with each ;
 
 M: book focusable-child* current-page ;
index 5636800c1ea711157498339b33628332f975a411..00b574f853f9df6281df78583af09c04db99b8c8 100755 (executable)
@@ -178,7 +178,7 @@ M: editor ungraft*
     \ first-visible-line get [
         editor get dup editor-color gl-color
         dup visible-lines
-        [ draw-line 1 translate-lines ] curry* each
+        [ draw-line 1 translate-lines ] with each
     ] with-editor-translation ;
 
 : selection-start/end ( editor -- start end )
index 7dd12cb61007f4bf6bde9b317b2a27348b7524dc..0ac43af756961b36b3e3da85d9816df78333f203 100755 (executable)
@@ -119,7 +119,7 @@ M: gadget children-on nip gadget-children ;
     dup gadget-visible? [ intersects? ] [ 2drop f ] if ;
 
 : (pick-up) ( point gadget -- gadget )
-    dupd children-on [ inside? ] curry* find-last nip ;
+    dupd children-on [ inside? ] with find-last nip ;
 
 : pick-up ( point gadget -- child/f )
     2dup (pick-up) dup
@@ -137,7 +137,7 @@ M: gadget children-on nip gadget-children ;
 
 : set-gadget-delegate ( gadget tuple -- )
     over [
-        dup pick [ set-gadget-parent ] curry* each-child
+        dup pick [ set-gadget-parent ] with each-child
     ] when set-delegate ;
 
 : construct-control ( model gadget class -- control )
index 8a38737f413e2ba4374ee35f82a2a7e5db94bd6e..fce88c0ebbf8d15e73393560988d49f11b290ec4 100755 (executable)
@@ -20,7 +20,7 @@ SYMBOL: grid-dim
 : draw-grid-lines ( gaps orientation -- )
     grid get rot grid-positions grid get rect-dim add [
         grid-line-from/to gl-line
-    ] curry* each ;
+    ] with each ;
 
 M: grid-lines draw-boundary
     origin get [
index 4572bc12d959832ba83ad52c0f8fd5a930db5247..342c360c8311ba047c1ac0b47e715508f5760606 100644 (file)
@@ -36,10 +36,10 @@ TUPLE: grid children gap fill? ;
     >r first r> second 2array ;
 
 : pair-up ( horiz vert -- dims )
-    [ [ (pair-up) ] curry map ] curry* map ;
+    [ [ (pair-up) ] curry map ] with map ;
 
 : add-gaps ( gap seq -- newseq )
-    [ v+ ] curry* map ;
+    [ v+ ] with map ;
 
 : gap-sum ( gap seq -- newseq )
     dupd add-gaps dim-sum v+ ;
index aa943085d452e7151c0e47376d4e5cbe26e83936..09ef3218b477b783f40e037725640059f2be93de 100755 (executable)
@@ -7,7 +7,7 @@ IN: ui.gadgets.packs
 TUPLE: pack align fill gap ;
 
 : packed-dim-2 ( gadget sizes -- list )
-    [ over rect-dim over v- rot pack-fill v*n v+ ] curry* map ;
+    [ over rect-dim over v- rot pack-fill v*n v+ ] with map ;
 
 : packed-dims ( gadget sizes -- seq )
     2dup packed-dim-2 swap orient ;
@@ -16,7 +16,7 @@ TUPLE: pack align fill gap ;
     { 0 0 } [ v+ over v+ ] accumulate 2nip ;
 
 : aligned-locs ( gadget sizes -- seq )
-    [ >r dup pack-align swap rect-dim r> v- n*v ] curry* map ;
+    [ >r dup pack-align swap rect-dim r> v- n*v ] with map ;
 
 : packed-locs ( gadget sizes -- seq )
     over pack-gap over gap-locs >r dupd aligned-locs r> orient ;
index 3cf257944a5984b8948beb61c30ddcfb01ee2410..15547ce8db143037844315bb37d80b517668affe 100755 (executable)
@@ -65,14 +65,14 @@ M: node draw-selection ( loc node -- )
     2dup node-value swap offset-rect [
         drop 2dup
         [ node-value rect-loc v+ ] keep
-        node-children [ draw-selection ] curry* each
+        node-children [ draw-selection ] with each
     ] if-fits 2drop ;
 
 M: pane draw-gadget*
     dup gadget-selection? [
         dup pane-selection-color gl-color
         origin get over rect-loc v- swap selected-children
-        [ draw-selection ] curry* each
+        [ draw-selection ] with each
     ] [
         drop
     ] if ;
@@ -342,7 +342,7 @@ M: pack sloppy-pick-up*
     (fast-children-on) ;
 
 M: gadget sloppy-pick-up*
-    gadget-children [ inside? ] curry* find-last drop ;
+    gadget-children [ inside? ] with find-last drop ;
 
 M: f sloppy-pick-up*
     2drop f ;
index c51aba1045e9fe17ab71731517c64bbceb8ea166..7576bce568563387c90d5622f8596b6520318df2 100644 (file)
@@ -62,7 +62,7 @@ SYMBOL: margin
 : do-wrap ( paragraph quot -- dim )
     [
         swap dup init-wrap
-        [ wrap-step ] curry* each-child wrap-dim
+        [ wrap-step ] with each-child wrap-dim
     ] with-scope ; inline
 
 M: paragraph pref-dim*
index d675f1873a89043098ff5c40b449b42839027cb6..2a3e344a9e249d4bb1b7f6d06f46c81fa0dd84ce 100755 (executable)
@@ -131,7 +131,7 @@ drag-timer construct-empty drag-timer set-global
     ] if ;
 
 : each-gesture ( gesture seq -- )
-    [ handle-gesture drop ] curry* each ;
+    [ handle-gesture drop ] with each ;
 
 : hand-gestures ( new old -- )
     drop-prefix <reversed>
@@ -164,7 +164,7 @@ drag-timer construct-empty drag-timer set-global
     ] if ;
 
 : modifier ( mod modifiers -- seq )
-    [ second swap bitand 0 > ] curry* subset
+    [ second swap bitand 0 > ] with subset
     0 <column> prune dup empty? [ drop f ] [ >array ] if ;
 
 : drag-loc ( -- loc )
index 0cc69d00afa677028c3b7037ac3d6a816b312437..45cd7732c281000cea7a6afccae5b806701f4b9b 100644 (file)
@@ -37,7 +37,7 @@ M: operation command-word operation-command command-word ;
 SYMBOL: operations
 
 : object-operations ( obj -- operations )
-    operations get [ operation-predicate call ] curry* subset ;
+    operations get [ operation-predicate call ] with subset ;
 
 : find-operation ( obj quot -- command )
     >r object-operations r> find-last nip ; inline
index 54615b08a2bf98674c96ae109be2947678300bc6..152b1bff44535abdc7cd2af3956a6a22ded59a0e 100644 (file)
@@ -159,14 +159,14 @@ HOOK: free-fonts font-renderer ( world -- )
     dup string? [
         string-height
     ] [
-        [ string-height ] curry* map sum
+        [ string-height ] with map sum
     ] if ;
 
 : text-width ( open-font text -- n )
     dup string? [
         string-width
     ] [
-        0 -rot [ string-width max ] curry* each
+        0 -rot [ string-width max ] with each
     ] if ;
 
 : text-dim ( open-font text -- dim )
@@ -181,6 +181,6 @@ HOOK: free-fonts font-renderer ( world -- )
                 2dup { 0 0 } draw-string
                 >r open-font r> string-height
                 0.0 swap 0.0 glTranslated
-            ] curry* each
+            ] with each
         ] with-translation
     ] if ;
index f77cf59fad5ecc067311cfe4719c703c0ee7e84a..ea3fcb02eb4f4eb5ea3e7a2773e578999eacf20c 100755 (executable)
@@ -17,7 +17,7 @@ TUPLE: live-search field list ;
 
 : search-gesture ( gesture live-search -- operation/f )
     search-value object-operations
-    [ operation-gesture = ] curry* find nip ;
+    [ operation-gesture = ] with find nip ;
 
 M: live-search handle-gesture* ( gadget gesture delegate -- ? )
     drop over search-gesture dup [
index b8c41e17cc97ff1f13d21039ce99eae08e708326..b4a6574c83d36dac717edb5197d575994bba9c62 100755 (executable)
@@ -24,7 +24,7 @@ GENERIC: tool-scroller ( tool -- scroller )
 M: gadget tool-scroller drop f ;
 
 : find-tool ( class workspace -- index tool )
-    workspace-book gadget-children [ class eq? ] curry* find ;
+    workspace-book gadget-children [ class eq? ] with find ;
 
 : show-tool ( class workspace -- tool )
     [ find-tool swap ] keep workspace-book gadget-model
index 09c06035b85b3aa68d165cd6b1a2d88ea103e755..febb56e10f8a6ebd6926d42b1504e0bc517339df 100755 (executable)
@@ -26,10 +26,10 @@ SYMBOL: windows
     [ [ length 1- dup 1- ] keep exchange ] [ drop ] if ;
 
 : unregister-window ( handle -- )
-    windows global [ [ first = not ] curry* subset ] change-at ;
+    windows global [ [ first = not ] with subset ] change-at ;
 
 : raised-window ( world -- )
-    windows get-global [ second eq? ] curry* find drop
+    windows get-global [ second eq? ] with find drop
     windows get-global [ length 1- ] keep exchange ;
 
 : focus-gestures ( new old -- )
@@ -67,7 +67,7 @@ M: world ungraft*
 
 : find-window ( quot -- world )
     windows get values
-    [ gadget-child swap call ] curry* find-last nip ; inline
+    [ gadget-child swap call ] with find-last nip ; inline
 
 SYMBOL: ui-hook
 
index 5984e3decd7f67a85063a429523b4d3ec31f6891..62944500ef0ae8918227394043a7567b8998797c 100755 (executable)
@@ -126,7 +126,7 @@ M: world selection-notify-event
 
 : supported-type? ( atom -- ? )
     { "UTF8_STRING" "STRING" "TEXT" }
-    [ x-atom = ] curry* contains? ;
+    [ x-atom = ] with contains? ;
 
 : clipboard-for-atom ( atom -- clipboard )
     {
index 5e0a1feab935f324f592eb314ed4fdb89d76e751..d211e0d2b3ef1808e124596aafce7eacb705b7bf 100644 (file)
@@ -64,13 +64,13 @@ SYMBOL: table
 : disconnect ( class1 class2 -- ) 0 set-table ;
 
 : connect-before ( class classes -- )
-    [ connect ] curry* each ;
+    [ connect ] with each ;
 
 : connect-after ( classes class -- )
     [ connect ] curry each ;
 
 : break-around ( classes1 classes2 -- )
-    [ [ 2dup disconnect swap disconnect ] curry* each ] curry each ;
+    [ [ 2dup disconnect swap disconnect ] with each ] curry each ;
 
 : make-grapheme-table ( -- )
     CR LF connect
index aeb9cfb5ba4759fe9f2f59dc5f9e3a641e5bb29d..2d19ddc5c1a8d960084ac43cd1d8fec9c23e3af5 100644 (file)
@@ -16,7 +16,7 @@ USING: unicode kernel tools.test words sequences namespaces ;
 [ { f f t t f t t f f t } ] [ CHAR: A { 
     blank? letter? LETTER? Letter? digit? 
     printable? alpha? control? uncased? character? 
-} [ execute ] curry* map ] unit-test
+} [ execute ] with map ] unit-test
 [ "Nd" ] [ CHAR: 3 category ] unit-test
 [ CHAR: ! ] [ UNICHAR: exclamation-mark ] unit-test
 [ "ab\u0323\u0302cd" ] [ "ab\u0302" "\u0323cd" string-append ] unit-test
index 609b57d4b2ebdecd360b763f1673589874d79e3f..debd8ceec01b6db42559467a3657bc238cc72827 100755 (executable)
@@ -22,7 +22,7 @@ IN: unicode
     pick [ between? ] [ 3drop f ] if ;
 
 : range ( from to -- seq )
-    1+ over - [ + ] curry* map ;
+    1+ over - [ + ] with map ;
 
 ! Loading data from UnicodeData.txt
 
@@ -33,7 +33,7 @@ IN: unicode
     "extra/unicode/UnicodeData.txt" resource-path data ;
 
 : (process-data) ( index data -- newdata )
-    [ [ nth ] keep first swap 2array ] curry* map
+    [ [ nth ] keep first swap 2array ] with map
     [ second empty? not ] subset
     [ >r hex> r> ] assoc-map ;
 
@@ -44,7 +44,7 @@ IN: unicode
     [
         2dup swap at
         [ (chain-decomposed) ] [ 1array nip ] ?if
-    ] curry* map concat ;
+    ] with map concat ;
 
 : chain-decomposed ( hash -- newhash )
     dup [ swap (chain-decomposed) ] curry assoc-map ;
@@ -157,7 +157,7 @@ load-tables
     category# categories nth ;
 
 : >category-array ( categories -- bitarray )
-    categories [ swap member? ] curry* map >bit-array ;
+    categories [ swap member? ] with map >bit-array ;
 
 : as-string ( strings -- bit-array )
     concat "\"" tuck 3append parse first ;
@@ -416,7 +416,7 @@ SYMBOL: locale ! Just casing locale, or overall?
         swap [ [
             dup hangul? [ hangul>jamo % drop ]
             [ dup rot call [ % ] [ , ] ?if ] if
-        ] curry* each ] "" make*
+        ] with each ] "" make*
         dup reorder
     ] if ; inline
 
index 1b422793243ad221311a7ef8124f0c150399ba56..8463c2545bc9a4938103995e2ae883d764be12bc 100644 (file)
@@ -115,4 +115,4 @@ tag default-mapping set-mapping
 : articles-for-tag ( tag -- seq )
   [ tag-name ] keep tag-hostname all-articles [
     tags-for-article member?
-  ] curry* subset ;
+  ] with subset ;
index 75440816be77bbeadbe824d90f96d3cd68acafc4..d6b1066083a50974297afe8bd20d7bc062cbadbb 100644 (file)
@@ -94,7 +94,7 @@ SYMBOL: last-update
 : fetch-blogroll ( blogroll -- entries )
     dup 0 <column>
     swap [ ?fetch-feed ] parallel-map
-    [ [ <posting> ] curry* map ] 2map concat ;
+    [ [ <posting> ] with map ] 2map concat ;
 
 : sort-entries ( entries -- entries' )
     [ [ entry-pub-date ] compare ] sort <reversed> ;
index c414e0ac70f94c6850f8546484a803ca2bc162ce..4c0701c6877e9761583024d9b9bc420b94f742bf 100755 (executable)
@@ -10,7 +10,7 @@ IN: webapps.source
 
 : check-source-path ( path -- ? )
     { "vm/" "core/" "extra/" "misc/" }
-    [ head? ] curry* contains? ;
+    [ head? ] with contains? ;
 
 : source-responder ( path mime-type -- )
     drop
index ae548164714cbde3231c9a2210104eddc397d3a1..b6a8326030d6ddf4bbddb3cb5d381dccfed77eb8 100644 (file)
@@ -48,7 +48,7 @@ C: <attrs> attrs
 
 : attr@ ( key alist -- index {key,value} )
     >r assure-name r> attrs-alist
-    [ first names-match? ] curry* find ;
+    [ first names-match? ] with find ;
 
 M: attrs at*
     attr@ nip [ second t ] [ f f ] if* ;
index f8bd8e10219af2d9d744fa2aa21516593753e7c7..1cb6d35505f9a5bbf3b93349d284b7ba1dfa7cf5 100644 (file)
@@ -2,7 +2,7 @@ USING: sequences xml kernel arrays xml.utilities io.files tools.test ;
 
 : assemble-data ( tag -- 3array )
     { "URL" "snippet" "title" }
-    [ tag-named children>string ] curry* map ;
+    [ tag-named children>string ] with map ;
 
 : parse-result ( xml -- seq )
     "resultElements" deep-tag-named "item" tags-named
index 0d910298f00056d50e8e5ba5671077de05eb809f..51757114087d976a7c610d14d57174f48fff85c7 100755 (executable)
@@ -78,10 +78,10 @@ M: process-missing error.
 : tag-named ( tag name/string -- matching-tag )
     ! like get-name-tag but only looks at direct children,
     ! not all the children down the tree.
-    assure-name swap [ tag-named? ] curry* find nip ;
+    assure-name swap [ tag-named? ] with find nip ;
 
 : tags-named ( tag name/string -- tags-seq )
-    tags@ swap [ tag-named? ] curry* subset ;
+    tags@ swap [ tag-named? ] with subset ;
 
 : tag-with-attr? ( elem attr-value attr-name -- ? )
     rot dup tag? [ at = ] [ 3drop f ] if ;
index e48b18b2ade810bf7af186b5cf9b8ec271f98cc7..6a0efa072e1db4ceff2eb234673563c69260236e 100644 (file)
@@ -20,7 +20,7 @@ TAGS>
 
 : parse-modes-tag ( tag -- modes )
     H{ } clone [
-        swap child-tags [ parse-mode-tag ] curry* each
+        swap child-tags [ parse-mode-tag ] with each
     ] keep ;
 
 : load-catalog ( -- modes )
@@ -76,7 +76,7 @@ SYMBOL: rule-sets
         ] [
             3drop
         ] if
-    ] curry* each ;
+    ] with each ;
 
 : finalize-rule-set ( ruleset -- )
     dup rule-set-finalized? {
index ac1d1d66caf57d4e66eee2ee4101daa464f38a56..e631a920bee21f970ae5c218dbc8e56563c24f46 100755 (executable)
@@ -109,7 +109,7 @@ RULE: SEQ_REGEXP seq-rule
 : parse-begin/end-tags
     [
         ! XXX: handle position attrs on span tag itself
-        child-tags [ parse-begin/end-tag ] curry* each
+        child-tags [ parse-begin/end-tag ] with each
     ] , ;
 
 : init-span-tag [ drop init-span ] , ;
@@ -161,7 +161,7 @@ TAGS>
 : parse-rules-tag ( tag -- rule-set )
     dup (parse-rules-tag) [
         dup rule-set-ignore-case? ignore-case? [
-            swap child-tags [ parse-rule-tag ] curry* each
+            swap child-tags [ parse-rule-tag ] with each
         ] with-variable
     ] keep ;
 
@@ -175,7 +175,7 @@ TAGS>
     ] H{ } map>assoc
     swap "PROPS" tag-named [
         parse-props-tag over values
-        [ merge-rule-set-props ] curry* each
+        [ merge-rule-set-props ] with each
     ] when* ;
 
 : parse-mode ( stream -- rule-sets )
index d31aac64ae83f41634e1444a8bda8eed73ffb25f..89cb5883368278b545c2accc5e72120f7e9d0944 100644 (file)
@@ -36,7 +36,7 @@ TAGS>
         init-from-tag dup
     ] keep
     tag-children [ tag? ] subset
-    [ parse-employee-tag ] curry* each ;
+    [ parse-employee-tag ] with each ;
 
 [
     T{ company f
index 371560367f1a540e252ab59d217edd33c658a719..2c982306cd2b2029ea86a03b337c0f5e303f72c9 100644 (file)
@@ -11,7 +11,7 @@ C: <result> result
 : parse-yahoo ( xml -- seq )
     "Result" deep-tags-named [
         { "Title" "Url" "Summary" }
-        [ tag-named children>string ] curry* map
+        [ tag-named children>string ] with map
         first3 <result>
     ] map ;