]> gitweb.factorcode.org Git - factor.git/commitdiff
renaming: contain? -> any?, deep-contains? -> deep-any?, pad-left -> pad-head, pad...
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 30 Jan 2009 04:19:07 +0000 (22:19 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 30 Jan 2009 04:19:07 +0000 (22:19 -0600)
110 files changed:
basis/base64/base64.factor
basis/bootstrap/image/image.factor
basis/calendar/format/format.factor
basis/checksums/sha1/sha1.factor
basis/checksums/sha2/sha2.factor
basis/compiler/cfg/linearization/linearization.factor [changed mode: 0644->0755]
basis/compiler/codegen/codegen.factor [changed mode: 0644->0755]
basis/compiler/tests/stack-trace.factor [changed mode: 0644->0755]
basis/compiler/tree/builder/builder-tests.factor [changed mode: 0644->0755]
basis/compiler/tree/checker/checker.factor [changed mode: 0644->0755]
basis/compiler/tree/cleanup/cleanup-tests.factor [changed mode: 0644->0755]
basis/compiler/tree/combinators/combinators.factor [changed mode: 0644->0755]
basis/compiler/tree/dead-code/simple/simple.factor [changed mode: 0644->0755]
basis/compiler/tree/normalization/normalization.factor
basis/compiler/tree/propagation/branches/branches.factor [changed mode: 0644->0755]
basis/compiler/tree/propagation/inlining/inlining.factor [changed mode: 0644->0755]
basis/compiler/tree/tuple-unboxing/tuple-unboxing.factor [changed mode: 0644->0755]
basis/concurrency/mailboxes/mailboxes.factor [changed mode: 0644->0755]
basis/csv/csv.factor [changed mode: 0644->0755]
basis/db/queries/queries.factor [changed mode: 0644->0755]
basis/db/sqlite/sqlite.factor [changed mode: 0644->0755]
basis/db/types/types.factor [changed mode: 0644->0755]
basis/dlists/dlists-docs.factor [changed mode: 0644->0755]
basis/dlists/dlists-tests.factor [changed mode: 0644->0755]
basis/dlists/dlists.factor [changed mode: 0644->0755]
basis/farkup/farkup.factor [changed mode: 0644->0755]
basis/formatting/formatting-docs.factor
basis/formatting/formatting.factor
basis/ftp/client/listing-parser/listing-parser.factor
basis/furnace/auth/features/edit-profile/edit-profile.factor [changed mode: 0644->0755]
basis/furnace/auth/login/login.factor
basis/furnace/utilities/utilities.factor [changed mode: 0644->0755]
basis/help/lint/lint.factor [changed mode: 0644->0755]
basis/html/streams/streams.factor
basis/http/client/client.factor
basis/http/server/static/static.factor
basis/io/directories/directories.factor
basis/io/files/windows/nt/nt-tests.factor
basis/io/files/windows/nt/nt.factor
basis/io/monitors/monitors-tests.factor
basis/io/styles/styles.factor
basis/locals/rewrite/point-free/point-free.factor [changed mode: 0644->0755]
basis/locals/rewrite/sugar/sugar.factor [changed mode: 0644->0755]
basis/math/combinatorics/combinatorics.factor
basis/math/intervals/intervals.factor [changed mode: 0644->0755]
basis/math/polynomials/polynomials.factor
basis/peg/peg.factor
basis/quoted-printable/quoted-printable.factor
basis/sequences/deep/deep-docs.factor [changed mode: 0644->0755]
basis/sequences/deep/deep-tests.factor [changed mode: 0644->0755]
basis/sequences/deep/deep.factor [changed mode: 0644->0755]
basis/soundex/soundex.factor
basis/stack-checker/backend/backend.factor [changed mode: 0644->0755]
basis/stack-checker/branches/branches.factor [changed mode: 0644->0755]
basis/stack-checker/transforms/transforms.factor [changed mode: 0644->0755]
basis/syndication/syndication.factor [changed mode: 0644->0755]
basis/tools/crossref/crossref-tests.factor [changed mode: 0644->0755]
basis/tools/disassembler/udis/udis.factor
basis/tools/files/files.factor
basis/tools/hexdump/hexdump.factor
basis/tools/scaffold/scaffold.factor [changed mode: 0644->0755]
basis/tools/vocabs/monitor/monitor.factor
basis/ui/x11/x11.factor
basis/unicode/collation/collation.factor [changed mode: 0644->0755]
basis/unicode/data/data.factor
basis/unix/utmpx/utmpx.factor
basis/urls/encoding/encoding.factor
basis/uuid/uuid.factor
basis/windows/ole32/ole32.factor
basis/xml/utilities/utilities.factor [changed mode: 0644->0755]
basis/xml/writer/writer.factor [changed mode: 0644->0755]
basis/xml/xml.factor [changed mode: 0644->0755]
basis/xmode/marker/marker.factor [changed mode: 0644->0755]
core/assocs/assocs-docs.factor [changed mode: 0644->0755]
core/assocs/assocs.factor [changed mode: 0644->0755]
core/checksums/checksums.factor
core/classes/algebra/algebra.factor [changed mode: 0644->0755]
core/classes/builtin/builtin-tests.factor [changed mode: 0644->0755]
core/classes/tuple/tuple.factor [changed mode: 0644->0755]
core/classes/union/union.factor [changed mode: 0644->0755]
core/combinators/combinators.factor [changed mode: 0644->0755]
core/generic/generic-tests.factor [changed mode: 0644->0755]
core/io/pathnames/pathnames.factor
core/sequences/sequences-docs.factor [changed mode: 0644->0755]
core/sequences/sequences-tests.factor
core/sequences/sequences.factor [changed mode: 0644->0755]
core/sets/sets-docs.factor [changed mode: 0644->0755]
core/sets/sets.factor [changed mode: 0644->0755]
core/strings/strings-tests.factor
core/words/words-tests.factor [changed mode: 0644->0755]
core/words/words.factor [changed mode: 0644->0755]
extra/automata/automata.factor
extra/benchmark/beust2/beust2.factor [changed mode: 0644->0755]
extra/benchmark/knucleotide/knucleotide.factor
extra/boolean-expr/boolean-expr.factor
extra/crypto/hmac/hmac.factor
extra/easy-help/easy-help.factor
extra/inverse/inverse.factor
extra/lint/lint.factor [changed mode: 0644->0755]
extra/math/floating-point/floating-point.factor
extra/money/money.factor
extra/parser-combinators/parser-combinators.factor
extra/project-euler/043/043.factor
extra/project-euler/046/046.factor [changed mode: 0644->0755]
extra/project-euler/059/059.factor
extra/project-euler/project-euler.factor
extra/sudoku/sudoku.factor [changed mode: 0644->0755]
extra/system-info/linux/linux.factor
extra/tar/tar.factor
misc/vim/syntax/factor.vim [changed mode: 0644->0755]

index a1668e7ce93ae9899087859970c6fe3055167687..7f96e1943085bd55ea57b4ce8136df30a60a1ef1 100644 (file)
@@ -45,8 +45,8 @@ SYMBOL: column
     ] with each ; inline
 
 : encode-pad ( seq n -- )
-    [ 3 0 pad-right binary [ encode3 ] with-byte-writer ]
-    [ 1+ ] bi* head-slice 4 CHAR: = pad-right write-lines ; inline
+    [ 3 0 pad-tail binary [ encode3 ] with-byte-writer ]
+    [ 1+ ] bi* head-slice 4 CHAR: = pad-tail write-lines ; inline
 
 ERROR: malformed-base64 ;
 
index 513b8972a647b5b591f18841a43eae0c81156e1e..221ffffb91a422ebc608310bc6b6a2591a7e13e7 100644 (file)
@@ -351,7 +351,7 @@ M: wrapper '
     bootstrap-cell <groups> native> emit-seq ;
 
 : pad-bytes ( seq -- newseq )
-    dup length bootstrap-cell align 0 pad-right ;
+    dup length bootstrap-cell align 0 pad-tail ;
 
 : extended-part ( str -- str' )
     dup [ 128 < ] all? [ drop f ] [
index a7c4410aa560516d1239b5fde1eccda750b9d14b..15a4cb826646a6eb9b720349cce1593e23fe68cd 100644 (file)
@@ -5,11 +5,11 @@ sequences io accessors arrays io.streams.string splitting
 combinators accessors calendar calendar.format.macros present ;\r
 IN: calendar.format\r
 \r
-: pad-00 ( n -- str ) number>string 2 CHAR: 0 pad-left ;\r
+: pad-00 ( n -- str ) number>string 2 CHAR: 0 pad-head ;\r
 \r
-: pad-0000 ( n -- str ) number>string 4 CHAR: 0 pad-left ;\r
+: pad-0000 ( n -- str ) number>string 4 CHAR: 0 pad-head ;\r
 \r
-: pad-00000 ( n -- str ) number>string 5 CHAR: 0 pad-left ;\r
+: pad-00000 ( n -- str ) number>string 5 CHAR: 0 pad-head ;\r
 \r
 : write-00 ( n -- ) pad-00 write ;\r
 \r
index ede8a8f6532cba1585fb0b4bfd5d327518fb93c6..e7aee0dd098f808a46e36e2f30ec1c51fa4fecfc 100644 (file)
@@ -128,7 +128,7 @@ M: sha1 checksum-stream ( stream -- sha1 )
     [ zip concat ] keep like ;
 
 : sha1-interleave ( string -- seq )
-    [ zero? ] trim-left
+    [ zero? ] trim-head
     dup length odd? [ rest ] when
     seq>2seq [ sha1 checksum-bytes ] bi@
     2seq>seq ;
index 898a695b34d5ce3308ec1fa19ba47db105ea9fd2..026c4d6f2725cc3006fed37b2192bcc11c84d72b 100644 (file)
@@ -62,7 +62,7 @@ SYMBOLS: vars M K H S0 S1 process-M word-size block-size ;
     [ + + w+ ] 2dip swap set-nth ; inline
 
 : prepare-message-schedule ( seq -- w-seq )
-    word-size get group [ be> ] map block-size get 0 pad-right
+    word-size get group [ be> ] map block-size get 0 pad-tail
     dup 16 64 dup <slice> [
         process-M-256
     ] with each ;
old mode 100644 (file)
new mode 100755 (executable)
index 584c4cd..8ef3abd
@@ -63,7 +63,7 @@ M: ##compare-float-branch linearize-insn
             ##box-float
             ##box-alien
         } memq?
-    ] contains? ;
+    ] any? ;
 
 : linearize-basic-block ( bb -- )
     [ number>> _label ]
old mode 100644 (file)
new mode 100755 (executable)
index 3d7f574..71d9c36
@@ -400,7 +400,7 @@ M: no-such-symbol compiler-error-type
 
 : check-dlsym ( symbols dll -- )
     dup dll-valid? [
-        dupd '[ _ dlsym ] contains?
+        dupd '[ _ dlsym ] any?
         [ drop ] [ no-such-symbol ] if
     ] [
         dll-path no-such-library drop
old mode 100644 (file)
new mode 100755 (executable)
index c6cbb79..cfbea3b
@@ -19,14 +19,14 @@ words splitting grouping sorting accessors ;
 
 : bleh ( seq -- seq' ) [ 3 + ] map [ 0 > ] filter ;
 
-: stack-trace-contains? ( word -- ? ) symbolic-stack-trace memq? ;
+: stack-trace-any? ( word -- ? ) symbolic-stack-trace memq? ;
 
 [ t ] [
-    [ { 1 "hi" } bleh ] ignore-errors \ + stack-trace-contains?
+    [ { 1 "hi" } bleh ] ignore-errors \ + stack-trace-any?
 ] unit-test
     
 [ t f ] [
     [ { "hi" } bleh ] ignore-errors
-    \ + stack-trace-contains?
-    \ > stack-trace-contains?
+    \ + stack-trace-any?
+    \ > stack-trace-any?
 ] unit-test
old mode 100644 (file)
new mode 100755 (executable)
index 3024472..d758e2a
@@ -8,4 +8,4 @@ compiler.tree ;
 
 : inline-recursive ( -- ) inline-recursive ; inline recursive
 
-[ t ] [ \ inline-recursive build-tree-from-word [ #recursive? ] contains? nip ] unit-test
+[ t ] [ \ inline-recursive build-tree-from-word [ #recursive? ] any? nip ] unit-test
old mode 100644 (file)
new mode 100755 (executable)
index a5f18d6..e25f152
@@ -175,7 +175,7 @@ M: #branch check-stack-flow*
     branch-out get [ ] find nip swap head* >vector datastack set ;
 
 M: #phi check-stack-flow*
-    branch-out get [ ] contains? [
+    branch-out get [ ] any? [
         [ check-phi-in ] [ set-phi-datastack ] [ check-out-d ] tri
     ] [ drop terminated? on ] if ;
 
old mode 100644 (file)
new mode 100755 (executable)
index 71c6fb5..751a335
@@ -498,7 +498,7 @@ cell-bits 32 = [
 
 [ t ] [
     [ { array-capacity } declare 1 fixnum+ ] cleaned-up-tree
-    [ { [ #call? ] [ node-input-infos second literal>> 1 = ] } 1&& ] contains?
+    [ { [ #call? ] [ node-input-infos second literal>> 1 = ] } 1&& ] any?
 ] unit-test
 
 [ ] [
old mode 100644 (file)
new mode 100755 (executable)
index 030df84..1fffa06
@@ -34,14 +34,14 @@ IN: compiler.tree.combinators
     dup dup '[
         _ keep swap [ drop t ] [
             dup #branch? [
-                children>> [ _ contains-node? ] contains?
+                children>> [ _ contains-node? ] any?
             ] [
                 dup #recursive? [
                     child>> _ contains-node?
                 ] [ drop f ] if
             ] if
         ] if
-    ] contains? ; inline recursive
+    ] any? ; inline recursive
 
 : select-children ( seq flags -- seq' )
     [ [ drop f ] unless ] 2map ;
old mode 100644 (file)
new mode 100755 (executable)
index 185c776..886233a
@@ -79,7 +79,7 @@ M: #alien-indirect compute-live-values* nip look-at-inputs ;
     dup out-d>> drop-dead-values tuck in-d>> >>out-d drop ;
 
 : some-outputs-dead? ( #call -- ? )
-    out-d>> [ live-value? not ] contains? ;
+    out-d>> [ live-value? not ] any? ;
 
 : maybe-drop-dead-outputs ( node -- nodes )
     dup some-outputs-dead? [
index 8c13de296a05952f9ebe1ff17c147981fde40682..3f1e9e2667ee08016a9f66b4e5b99ce7bdff77d9 100644 (file)
@@ -60,7 +60,7 @@ M: #branch normalize*
 : eliminate-phi-introductions ( introductions seq terminated -- seq' )
     [
         [ nip ] [
-            dup [ +bottom+ eq? ] trim-left
+            dup [ +bottom+ eq? ] trim-head
             [ [ length ] bi@ - tail* ] keep append
         ] if
     ] 3map ;
old mode 100644 (file)
new mode 100755 (executable)
index 7b3135e..f3b3238
@@ -124,7 +124,7 @@ DEFER: (flat-length)
         [ class-types length 1 = ]
         [ union-class? not ]
         bi and
-    ] contains? ;
+    ] any? ;
 
 : node-count-bias ( -- n )
     45 node-count get [-] 8 /i ;
old mode 100644 (file)
new mode 100755 (executable)
index f6726e4..1e00efa
@@ -118,7 +118,7 @@ M: #return-recursive unbox-tuples*
 ! These nodes never participate in unboxing
 : assert-not-unboxed ( values -- )
     dup array?
-    [ [ unboxed-allocation ] contains? ] [ unboxed-allocation ] if
+    [ [ unboxed-allocation ] any? ] [ unboxed-allocation ] if
     [ "Unboxing wrong value" throw ] when ;
 
 M: #branch unbox-tuples* dup in-d>> assert-not-unboxed ;
old mode 100644 (file)
new mode 100755 (executable)
index 6370704..656fbbb
@@ -25,7 +25,7 @@ M: mailbox dispose* threads>> notify-all ;
 \r
 :: block-unless-pred ( mailbox timeout pred: ( message -- ? ) -- )\r
     mailbox check-disposed\r
-    mailbox data>> pred dlist-contains? [\r
+    mailbox data>> pred dlist-any? [\r
         mailbox timeout wait-for-mailbox\r
         mailbox timeout pred block-unless-pred\r
     ] unless ; inline recursive\r
old mode 100644 (file)
new mode 100755 (executable)
index 483a582..bc3c25d
@@ -71,7 +71,7 @@ DEFER: quoted-field ( -- endchar )
   delimiter swap with-variable ; inline
 
 : needs-escaping? ( cell -- ? )
-  [ [ "\n\"" member? ] [ delimiter get = ] bi or ] contains? ; inline ! "
+  [ [ "\n\"" member? ] [ delimiter get = ] bi or ] any? ; inline
 
 : escape-quotes ( cell -- cell' )
   [ [ dup , CHAR: " = [ CHAR: " , ] when ] each ] "" make ; inline
old mode 100644 (file)
new mode 100755 (executable)
index 2d7ea67..495c25e
@@ -19,7 +19,7 @@ SINGLETON: retryable
     ] if ;
 
 : maybe-make-retryable ( statement -- statement )
-    dup in-params>> [ generator-bind? ] contains?
+    dup in-params>> [ generator-bind? ] any?
     [ make-retryable ] when ;
 
 : regenerate-params ( statement -- statement )
old mode 100644 (file)
new mode 100755 (executable)
index 0f54503..fe3bb64
@@ -294,7 +294,7 @@ M: sqlite-db-connection persistent-table ( -- assoc )
     ] with-string-writer ;
 
 : can-be-null? ( -- ? )
-    "sql-spec" get modifiers>> [ +not-null+ = ] contains? not ;
+    "sql-spec" get modifiers>> [ +not-null+ = ] any? not ;
 
 : delete-cascade? ( -- ? )
     "sql-spec" get modifiers>> { +on-delete+ +cascade+ } swap subseq? ;
old mode 100644 (file)
new mode 100755 (executable)
index 2d4a6ff..b5a7db9
@@ -71,10 +71,10 @@ ERROR: not-persistent class ;
     primary-key>> +primary-key+? ;
 
 : db-assigned-id-spec? ( specs -- ? )
-    [ primary-key>> +db-assigned-id+? ] contains? ;
+    [ primary-key>> +db-assigned-id+? ] any? ;
 
 : user-assigned-id-spec? ( specs -- ? )
-    [ primary-key>> +user-assigned-id+? ] contains? ;
+    [ primary-key>> +user-assigned-id+? ] any? ;
 
 : normalize-spec ( spec -- )
     dup type>> dup +primary-key+? [
@@ -105,7 +105,7 @@ FACTOR-BLOB NULL URL ;
         dup normalize-spec ;
 
 : spec>tuple ( class spec -- tuple )
-    3 f pad-right [ first3 ] keep 3 tail <sql-spec> ;
+    3 f pad-tail [ first3 ] keep 3 tail <sql-spec> ;
 
 : number>string* ( n/string -- string )
     dup number? [ number>string ] when ;
old mode 100644 (file)
new mode 100755 (executable)
index ef6087f..12e3974
@@ -15,7 +15,7 @@ $nl
 "Iterating over elements:"
 { $subsection dlist-each }
 { $subsection dlist-find }
-{ $subsection dlist-contains? }
+{ $subsection dlist-any? }
 "Deleting a node matching a predicate:"
 { $subsection delete-node-if* }
 { $subsection delete-node-if }
@@ -40,7 +40,7 @@ HELP: dlist-find
     "This operation is O(n)."
 } ;
 
-HELP: dlist-contains?
+HELP: dlist-any?
 { $values { "dlist" { $link dlist } } { "quot" quotation } { "?" "a boolean" } }
 { $description "Just like " { $link dlist-find } " except it doesn't return the object." }
 { $notes "This operation is O(n)." } ;
old mode 100644 (file)
new mode 100755 (executable)
index 084aa0a..3689680
@@ -46,8 +46,8 @@ IN: dlists.tests
 [ f f ] [ <dlist> [ 1 = ] dlist-find ] unit-test
 [ 1 t ] [ <dlist> 1 over push-back [ 1 = ] dlist-find ] unit-test
 [ f f ] [ <dlist> 1 over push-back [ 2 = ] dlist-find ] unit-test
-[ f ] [ <dlist> 1 over push-back [ 2 = ] dlist-contains? ] unit-test
-[ t ] [ <dlist> 1 over push-back [ 1 = ] dlist-contains? ] unit-test
+[ f ] [ <dlist> 1 over push-back [ 2 = ] dlist-any? ] unit-test
+[ t ] [ <dlist> 1 over push-back [ 1 = ] dlist-any? ] unit-test
 
 [ 1 ] [ <dlist> 1 over push-back [ 1 = ] delete-node-if ] unit-test
 [ t ] [ <dlist> 1 over push-back dup [ 1 = ] delete-node-if drop deque-empty? ] unit-test
old mode 100644 (file)
new mode 100755 (executable)
index 8c57510..3d7224e
@@ -117,11 +117,11 @@ M: dlist pop-back* ( dlist -- )
 : dlist-find ( dlist quot -- obj/f ? )
     '[ obj>> @ ] dlist-find-node [ obj>> t ] [ drop f f ] if ; inline
 
-: dlist-contains? ( dlist quot -- ? )
+: dlist-any? ( dlist quot -- ? )
     dlist-find nip ; inline
 
 M: dlist deque-member? ( value dlist -- ? )
-    [ = ] with dlist-contains? ;
+    [ = ] with dlist-any? ;
 
 M: dlist delete-node ( dlist-node dlist -- )
     {
old mode 100644 (file)
new mode 100755 (executable)
index b9e6271..ebd0bdb
@@ -34,7 +34,7 @@ TUPLE: line ;
 TUPLE: line-break ;
 
 : absolute-url? ( string -- ? )
-    { "http://" "https://" "ftp://" } [ head? ] with contains? ;
+    { "http://" "https://" "ftp://" } [ head? ] with any? ;
 
 : simple-link-title ( string -- string' )
     dup absolute-url? [ "/" split1-last swap or ] unless ;
@@ -162,7 +162,7 @@ stand-alone
 : check-url ( href -- href' )
     {
         { [ dup empty? ] [ drop invalid-url ] }
-        { [ dup [ 127 > ] contains? ] [ drop invalid-url ] }
+        { [ dup [ 127 > ] any? ] [ drop invalid-url ] }
         { [ dup first "/\\" member? ] [ drop invalid-url ] }
         { [ CHAR: : over member? ] [ dup absolute-url? [ drop invalid-url ] unless ] }
         [ relative-link-prefix get prepend "" like ]
index 196302f203a18d7a40055d37e15a66534a4d1558..cfa322fb53d2e8b5b23a624edc8465e635b951a3 100644 (file)
@@ -43,7 +43,7 @@ HELP: printf
     "string. For example:\n"
     { $list 
         "\"%.3s\" formats a string to truncate at 3 characters (from the left)."
-        "\"%.10f\" formats a float to pad-right with zeros up to 10 digits beyond the decimal point."
+        "\"%.10f\" formats a float to pad-tail with zeros up to 10 digits beyond the decimal point."
         "\"%.5E\" formats a float into scientific notation with zeros up to 5 digits beyond the decimal point, but before the exponent."
     }
 }
index 3f12c36bbd8b9b92046f976e9149e3ea5c20874f..a55f0c77c5f1652a36d524ffa37f7189a6c24e97 100644 (file)
@@ -29,7 +29,7 @@ IN: formatting
     [ 0 ] [ string>number ] if-empty ;
 
 : pad-digits ( string digits -- string' )
-    [ "." split1 ] dip [ CHAR: 0 pad-right ] [ head-slice ] bi "." glue ;
+    [ "." split1 ] dip [ CHAR: 0 pad-tail ] [ head-slice ] bi "." glue ;
 
 : max-digits ( n digits -- n' )
     10 swap ^ [ * round ] keep / ; inline
@@ -48,7 +48,7 @@ IN: formatting
     [ max-digits ] keep -rot
     [
         [ 0 < "-" "+" ? ]
-        [ abs number>string 2 CHAR: 0 pad-left ] bi 
+        [ abs number>string 2 CHAR: 0 pad-head ] bi 
         "e" -rot 3append
     ]
     [ number>string ] bi*
@@ -60,7 +60,7 @@ zero      = "0"                  => [[ CHAR: 0 ]]
 char      = "'" (.)              => [[ second ]]
 
 pad-char  = (zero|char)?         => [[ CHAR: \s or ]]
-pad-align = ("-")?               => [[ \ pad-right \ pad-left ? ]] 
+pad-align = ("-")?               => [[ \ pad-tail \ pad-head ? ]] 
 pad-width = ([0-9])*             => [[ >digits ]]
 pad       = pad-align pad-char pad-width => [[ reverse >quotation dup first 0 = [ drop [ ] ] when ]]
 
@@ -110,9 +110,9 @@ MACRO: printf ( format-string -- )
 
 <PRIVATE
 
-: pad-00 ( n -- string ) number>string 2 CHAR: 0 pad-left ; inline
+: pad-00 ( n -- string ) number>string 2 CHAR: 0 pad-head ; inline
 
-: pad-000 ( n -- string ) number>string 3 CHAR: 0 pad-left ; inline
+: pad-000 ( n -- string ) number>string 3 CHAR: 0 pad-head ; inline
 
 : >time ( timestamp -- string )
     [ hour>> ] [ minute>> ] [ second>> floor ] tri 3array
index 6183165b3adda6736a8e2d466bd34153e9fc51ee..6e2f9ebec4d38ada2a6bd37d2a5bed6ae942062f 100644 (file)
@@ -39,7 +39,7 @@ name target ;
 
 : parse-list-11 ( lines -- seq )
     [
-        11 f pad-right
+        11 f pad-tail
         <remote-file> swap {
             [ 0 swap nth parse-permissions ]
             [ 1 swap nth string>number >>links ]
old mode 100644 (file)
new mode 100755 (executable)
index cefb472..08c1a1a
@@ -31,7 +31,7 @@ IN: furnace.auth.features.edit-profile
             } validate-params
 
             { "password" "new-password" "verify-password" }
-            [ value empty? not ] contains? [
+            [ value empty? not ] any? [
                 "password" value username check-login
                 [ "incorrect password" validation-error ] unless
 
index fff301eb2f76379fbcd08bec032daf7ef21fd53f..0ceafa7f86384b7b12548661cabb035cb562700c 100644 (file)
@@ -16,7 +16,7 @@ IN: furnace.auth.login
 SYMBOL: permit-id\r
 \r
 : permit-id-key ( realm -- string )\r
-    [ >hex 2 CHAR: 0 pad-left ] { } map-as concat\r
+    [ >hex 2 CHAR: 0 pad-head ] { } map-as concat\r
     "__p_" prepend ;\r
 \r
 : client-permit-id ( realm -- id/f )\r
old mode 100644 (file)
new mode 100755 (executable)
index f84519b..e09047b
@@ -29,7 +29,7 @@ ERROR: no-such-word name vocab ;
 
 : base-path ( string -- pair )
     dup responder-nesting get
-    [ second class superclasses [ name>> = ] with contains? ] with find nip
+    [ second class superclasses [ name>> = ] with any? ] with find nip
     [ first ] [ "No such responder: " swap append throw ] ?if ;
 
 : resolve-base-path ( string -- string' )
old mode 100644 (file)
new mode 100755 (executable)
index 30d5ef4..d3316a0
@@ -43,7 +43,7 @@ SYMBOL: vocabs-quot
         $predicate
         $class-description
         $error-description
-    } swap '[ _ elements empty? not ] contains? ;
+    } swap '[ _ elements empty? not ] any? ;
 
 : don't-check-word? ( word -- ? )
     {
@@ -103,7 +103,7 @@ SYMBOL: vocabs-quot
     [ "Missing whitespace between strings" throw ] unless ;
 
 : check-bogus-nl ( element -- )
-    { { $nl } { { $nl } } } [ head? ] with contains?
+    { { $nl } { { $nl } } } [ head? ] with any?
     [ "Simple element should not begin with a paragraph break" throw ] when ;
 
 : check-elements ( element -- )
index 709b65761e749448f42c345ea587a93a5fa8b154..24d9dceb8024a6c1a9bd365e30d299d49c2af4a0 100644 (file)
@@ -55,7 +55,7 @@ TUPLE: html-sub-stream < html-stream style parent ;
 
 : hex-color, ( color -- )
     [ red>> ] [ green>> ] [ blue>> ] tri
-    [ 255 * >fixnum >hex 2 CHAR: 0 pad-left % ] tri@ ;
+    [ 255 * >fixnum >hex 2 CHAR: 0 pad-head % ] tri@ ;
 
 : fg-css, ( color -- )
     "color: #" % hex-color, "; " % ;
index e7305ed372b96d00023eb40536f948326a338c19..cc1c67c31e139c7326d6df6fbca50987af4e39c0 100644 (file)
@@ -86,7 +86,7 @@ SYMBOL: redirects
     ] [ too-many-redirects ] if ; inline recursive
 
 : read-chunk-size ( -- n )
-    read-crlf ";" split1 drop [ blank? ] trim-right
+    read-crlf ";" split1 drop [ blank? ] trim-tail
     hex> [ "Bad chunk size" throw ] unless* ;
 
 : read-chunked ( quot: ( chunk -- ) -- )
index b19bf2ae55be4d9a6911b92a3a63ab987aba4747..c910529d734a57cf00f2af3c4939cc36e45e2197 100644 (file)
@@ -45,9 +45,9 @@ TUPLE: file-responder root hook special allow-listings ;
     [ file-responder get hook>> call ] [ 2drop <304> ] if ;\r
 \r
 : serving-path ( filename -- filename )\r
-    file-responder get root>> trim-right-separators\r
+    file-responder get root>> trim-tail-separators\r
     "/"\r
-    rot "" or trim-left-separators 3append ;\r
+    rot "" or trim-head-separators 3append ;\r
 \r
 : serve-file ( filename -- response )\r
     dup mime-type\r
index 6ae55b7f7be7fdda09acf9c292a8826ff2d2301a..30f4cebf8d58498f37ab3145bce245edd205cdcc 100755 (executable)
@@ -15,7 +15,7 @@ IN: io.directories
 HOOK: make-directory io-backend ( path -- )
 
 : make-directories ( path -- )
-    normalize-path trim-right-separators {
+    normalize-path trim-tail-separators {
         { [ dup "." = ] [ ] }
         { [ dup root-directory? ] [ ] }
         { [ dup empty? ] [ ] }
@@ -87,4 +87,4 @@ M: object copy-file
 {
     { [ os unix? ] [ "io.directories.unix" require ] }
     { [ os windows? ] [ "io.directories.windows" require ] }
-} cond
\ No newline at end of file
+} cond
index e934dc8cd256df96740fa89480dd253da64cdd21..b3bfecaafc3c4393147281cc36ac73466421ac1a 100644 (file)
@@ -25,8 +25,8 @@ IN: io.files.windows.nt.tests
 [ t ] [ "\\\\" root-directory? ] unit-test
 [ t ] [ "/" root-directory? ] unit-test
 [ t ] [ "//" root-directory? ] unit-test
-[ t ] [ "c:\\" trim-right-separators root-directory? ] unit-test
-[ t ] [ "Z:\\" trim-right-separators root-directory? ] unit-test
+[ t ] [ "c:\\" trim-tail-separators root-directory? ] unit-test
+[ t ] [ "Z:\\" trim-tail-separators root-directory? ] unit-test
 [ f ] [ "c:\\foo" root-directory? ] unit-test
 [ f ] [ "." root-directory? ] unit-test
 [ f ] [ ".." root-directory? ] unit-test
index 3241d19efa602a98b409287ada3a1c3a82c0500f..9e449982fbb7498544d20f1f9d482bce91e4fb87 100755 (executable)
@@ -22,10 +22,10 @@ M: winnt root-directory? ( path -- ? )
     {
         { [ dup empty? ] [ drop f ] }
         { [ dup [ path-separator? ] all? ] [ drop t ] }
-        { [ dup trim-right-separators { [ length 2 = ]
+        { [ dup trim-tail-separators { [ length 2 = ]
           [ second CHAR: : = ] } 1&& ] [ drop t ] }
         { [ dup unicode-prefix head? ]
-          [ trim-right-separators length unicode-prefix length 2 + = ] }
+          [ trim-tail-separators length unicode-prefix length 2 + = ] }
         [ drop f ]
     } cond ;
 
index 7c50a4e63782c11915baeedc25920ecdec68fbfa..8252b6ef7208a41ecab64bf532f4893238289aa1 100644 (file)
@@ -56,7 +56,7 @@ os { winnt linux macosx } member? [
                     "m" get next-change path>>
                     dup print flush
                     dup parent-directory
-                    [ trim-right-separators "xyz" tail? ] either? not
+                    [ trim-tail-separators "xyz" tail? ] either? not
                 ] loop
 
                 "c1" get count-down
@@ -65,7 +65,7 @@ os { winnt linux macosx } member? [
                     "m" get next-change path>>
                     dup print flush
                     dup parent-directory
-                    [ trim-right-separators "yxy" tail? ] either? not
+                    [ trim-tail-separators "yxy" tail? ] either? not
                 ] loop
 
                 "c2" get count-down
index 0e07c8bda9f04fd68e451e249259723b77754d3d..64a28aabeea6d082d7aafe6c627695cd86a2dcf8 100644 (file)
@@ -118,7 +118,7 @@ M: plain-writer make-block-stream
 : format-column ( seq ? -- seq )
     [
         [ 0 [ length max ] reduce ] keep
-        swap [ CHAR: \s pad-right ] curry map
+        swap [ CHAR: \s pad-tail ] curry map
     ] unless ;
 
 : map-last ( seq quot -- seq )
old mode 100644 (file)
new mode 100755 (executable)
index 33e0f4d..4e91e3d
@@ -40,7 +40,7 @@ M: object localize 1quotation ;
 ! We special-case all the :> at the start of a quotation
 : load-locals-quot ( args -- quot )
     [ [ ] ] [
-        dup [ local-reader? ] contains? [
+        dup [ local-reader? ] any? [
             dup [ local-reader? [ 1array ] [ ] ? ] map
             spread>quot
         ] [ [ ] ] if swap length [ load-locals ] curry append
old mode 100644 (file)
new mode 100755 (executable)
index 515473c..f0b8ac7
@@ -33,9 +33,9 @@ GENERIC: rewrite-literal? ( obj -- ? )
 
 M: special rewrite-literal? drop t ;
 
-M: array rewrite-literal? [ rewrite-literal? ] contains? ;
+M: array rewrite-literal? [ rewrite-literal? ] any? ;
 
-M: quotation rewrite-literal? [ rewrite-literal? ] contains? ;
+M: quotation rewrite-literal? [ rewrite-literal? ] any? ;
 
 M: wrapper rewrite-literal? wrapped>> rewrite-literal? ;
 
index 1bc692ca54756ea7c4f893747b5dbcaf014f398e..d5dff65c35da021fb9b87444197daae3ebcaae95 100644 (file)
@@ -25,7 +25,7 @@ IN: math.combinatorics
     reverse 1 cut [ (>permutation) ] each ;
 
 : permutation-indices ( n seq -- permutation )
-    length [ factoradic ] dip 0 pad-left >permutation ;
+    length [ factoradic ] dip 0 pad-head >permutation ;
 
 PRIVATE>
 
old mode 100644 (file)
new mode 100755 (executable)
index 86c3b0d..089de35
@@ -77,7 +77,7 @@ TUPLE: interval { from read-only } { to read-only } ;
     [ from>> ] [ to>> ] bi ;
 
 : points>interval ( seq -- interval )
-    dup [ first fp-nan? ] contains?
+    dup [ first fp-nan? ] any?
     [ drop [-inf,inf] ] [
         dup first
         [ [ endpoint-min ] reduce ]
index 5783dfdf4125a4ef5ba9c144d1c9aaa577e0ced4..1ece3d915e0b434fe9436a27d6b2c8f56b55efb8 100644 (file)
@@ -6,10 +6,10 @@ IN: math.polynomials
 
 <PRIVATE
 
-: 2pad-left ( p q n -- p q ) [ 0 pad-left ] curry bi@ ;
-: 2pad-right ( p q n -- p q ) [ 0 pad-right ] curry bi@ ;
-: pextend ( p q -- p q ) 2dup [ length ] bi@ max 2pad-right ;
-: pextend-left ( p q -- p q ) 2dup [ length ] bi@ max 2pad-left ;
+: 2pad-head ( p q n -- p q ) [ 0 pad-head ] curry bi@ ;
+: 2pad-tail ( p q n -- p q ) [ 0 pad-tail ] curry bi@ ;
+: pextend ( p q -- p q ) 2dup [ length ] bi@ max 2pad-tail ;
+: pextend-left ( p q -- p q ) 2dup [ length ] bi@ max 2pad-head ;
 : unempty ( seq -- seq ) [ { 0 } ] when-empty ;
 : 2unempty ( seq seq -- seq seq ) [ unempty ] bi@ ;
 
@@ -21,7 +21,7 @@ PRIVATE>
 : p= ( p q -- ? ) pextend = ;
 
 : ptrim ( p -- p )
-    dup length 1 = [ [ zero? ] trim-right ] unless ;
+    dup length 1 = [ [ zero? ] trim-tail ] unless ;
 
 : 2ptrim ( p q -- p q ) [ ptrim ] bi@ ;
 : p+ ( p q -- r ) pextend v+ ;
@@ -29,7 +29,7 @@ PRIVATE>
 : n*p ( n p -- n*p ) n*v ;
 
 : pextend-conv ( p q -- p q )
-    2dup [ length ] bi@ + 1- 2pad-right [ >vector ] bi@ ;
+    2dup [ length ] bi@ + 1- 2pad-tail [ >vector ] bi@ ;
 
 : p* ( p q -- r )
     2unempty pextend-conv <reversed> dup length
@@ -44,7 +44,7 @@ PRIVATE>
     2ptrim
     2dup [ length ] bi@ -
     dup 1 < [ drop 1 ] when
-    [ over length + 0 pad-left pextend ] keep 1+ ;
+    [ over length + 0 pad-head pextend ] keep 1+ ;
 
 : /-last ( seq seq -- a )
     #! divide the last two numbers in the sequences
index 206a054d3540389ea963e5be58f51cd02439820a..5ac62239d787104da33d7f63aa46b7f74d29182c 100644 (file)
@@ -509,7 +509,7 @@ TUPLE: sp-parser p1 ;
 
 M: sp-parser (compile) ( peg -- quot )
   p1>> compile-parser 1quotation '[ 
-    input-slice [ blank? ] trim-left-slice input-from pos set @ 
+    input-slice [ blank? ] trim-head-slice input-from pos set @ 
   ] ;
 
 TUPLE: delay-parser quot ;
index 83fee523a08d75f89f0d2048a1a6f69d0674fc74..3be1a07eab8d04d452358d3888ef055432310516 100644 (file)
@@ -23,7 +23,7 @@ IN: quoted-printable
 : char>quoted ( ch -- str )
     dup printable? [ 1string ] [
         assure-small >hex >upper
-        2 CHAR: 0 pad-left 
+        2 CHAR: 0 pad-head 
         CHAR: = prefix
     ] if ;
 
old mode 100644 (file)
new mode 100755 (executable)
index f067e6e..6193c7a
@@ -21,10 +21,10 @@ HELP: deep-find
 { $description "Gets the first sub-node of the object, in preorder, which satisfies the quotation. If nothing satisifies it, it returns " { $link f } "." }
 { $see-also find }  ;
 
-HELP: deep-contains?
+HELP: deep-any?
 { $values { "obj" object } { "quot" { $quotation "( elt -- ? )" } } { "?" "a boolean" } }
 { $description "Tests whether the given object or any subnode satisfies the given quotation." }
-{ $see-also contains? } ;
+{ $see-also any? } ;
 
 HELP: flatten
 { $values { "obj" object } { "seq" "a sequence" } }
@@ -41,7 +41,7 @@ ARTICLE: "sequences.deep" "Deep sequence combinators"
 { $subsection deep-map }
 { $subsection deep-filter }
 { $subsection deep-find }
-{ $subsection deep-contains? }
+{ $subsection deep-any? }
 { $subsection deep-change-each }
 "A utility word to collapse nested subsequences:"
 { $subsection flatten } ;
old mode 100644 (file)
new mode 100755 (executable)
index 2d3260f..e26241a
@@ -19,7 +19,7 @@ IN: sequences.deep.tests
 [ { { "heyhello" "hihello" } } ]
 [ "hey" 1array 1array [ [ change-something ] deep-change-each ] keep ] unit-test
 
-[ t ] [ "foo" [ string? ] deep-contains?  ] unit-test
+[ t ] [ "foo" [ string? ] deep-any?  ] unit-test
 
 [ "foo" ] [ "foo" [ string? ] deep-find ] unit-test
 
old mode 100644 (file)
new mode 100755 (executable)
index d942b3f..bfc102f
@@ -33,10 +33,10 @@ M: object branch? drop f ;
 
 : deep-find ( obj quot -- elt ) (deep-find) drop ; inline
 
-: deep-contains? ( obj quot -- ? ) (deep-find) nip ; inline
+: deep-any? ( obj quot -- ? ) (deep-find) nip ; inline
 
 : deep-all? ( obj quot -- ? )
-    '[ @ not ] deep-contains? not ; inline
+    '[ @ not ] deep-any? not ; inline
 
 : deep-member? ( obj seq -- ? )
     swap '[
index 164f634185f3fd99609cec189196e5cf3680403a..2fd928252fbffff51e5d696064e5e63818b13b03 100644 (file)
@@ -14,7 +14,7 @@ TR: soundex-tr
     [ 2 <clumps> [ = not ] assoc-filter values ] [ first ] bi prefix ;
 
 : first>upper ( seq -- seq' ) 1 head >upper ;
-: trim-first ( seq -- seq' ) dup first [ = ] curry trim-left ;
+: trim-first ( seq -- seq' ) dup first [ = ] curry trim-head ;
 : remove-zeroes ( seq -- seq' ) CHAR: 0 swap remove ;
 : remove-non-alpha ( seq -- seq' ) [ alpha? ] filter ;
 : pad-4 ( first seq -- seq' ) "000" 3append 4 head ;
old mode 100644 (file)
new mode 100755 (executable)
index 9516b8c..b08bdd8
@@ -147,7 +147,7 @@ M: object apply-object push-literal ;
     {
         { [ dup deferred? ] [ drop f ] }
         { [ dup crossref? not ] [ drop f ] }
-        [ def>> [ word? ] contains? ]
+        [ def>> [ word? ] any? ]
     } cond ;
 
 : ?missing-effect ( word -- )
old mode 100644 (file)
new mode 100755 (executable)
index aa179fe..2eb4fb4
@@ -17,7 +17,7 @@ SYMBOL: +bottom+
 : pad-with-bottom ( seq -- newseq )
     dup empty? [
         dup [ length ] map supremum
-        '[ _ +bottom+ pad-left ] map
+        '[ _ +bottom+ pad-head ] map
     ] unless ;
 
 : phi-inputs ( max-d-in pairs -- newseq )
@@ -108,7 +108,7 @@ M: callable infer-branch
         (infer-if)
     ] [
         drop 2 consume-d
-        dup [ known [ curried? ] [ composed? ] bi or ] contains? [
+        dup [ known [ curried? ] [ composed? ] bi or ] any? [
             output-d
             [ rot [ drop call ] [ nip call ] if ]
             infer-quot-here
old mode 100644 (file)
new mode 100755 (executable)
index 299dc1b..7afac04
@@ -125,9 +125,9 @@ IN: stack-checker.transforms
     #! Can we use a fast byte array test here?
     {
         { [ dup length 8 < ] [ f ] }
-        { [ dup [ integer? not ] contains? ] [ f ] }
-        { [ dup [ 0 < ] contains? ] [ f ] }
-        { [ dup [ bit-member-n >= ] contains? ] [ f ] }
+        { [ dup [ integer? not ] any? ] [ f ] }
+        { [ dup [ 0 < ] any? ] [ f ] }
+        { [ dup [ bit-member-n >= ] any? ] [ f ] }
         [ t ]
     } cond nip ;
 
old mode 100644 (file)
new mode 100755 (executable)
index b23910e..76da6f0
@@ -80,7 +80,7 @@ TUPLE: entry title url description date ;
         [ atom-entry-link >>url ]
         [
             { "content" "summary" } any-tag-named
-            dup children>> [ string? not ] contains?
+            dup children>> [ string? not ] any?
             [ children>> xml>string ]
             [ children>string ] if >>description
         ]
old mode 100644 (file)
new mode 100755 (executable)
index e7e2e55..3d09802
@@ -10,4 +10,4 @@ M: integer foo + ;
 "resource:basis/tools/crossref/test/foo.factor" run-file
 
 [ t ] [ integer \ foo method \ + usage member? ] unit-test
-[ t ] [ \ foo usage [ pathname? ] contains? ] unit-test
+[ t ] [ \ foo usage [ pathname? ] any? ] unit-test
index a915551263a78ca06c02439a0dfd67d857e660ab..cb52b1d5dbf80f611db285773bd464328c734375 100644 (file)
@@ -59,8 +59,8 @@ SINGLETON: udis-disassembler
     dup [ second length ] map supremum
     '[
         [
-            [ first >hex cell 2 * CHAR: 0 pad-left % ": " % ]
-            [ second _ CHAR: \s pad-right % "  " % ]
+            [ first >hex cell 2 * CHAR: 0 pad-head % ": " % ]
+            [ second _ CHAR: \s pad-tail % "  " % ]
             [ third % ]
             tri
         ] "" make
index 936c68232248b8babc645db6f0e324613303b3ad..7508c37cac456ff15469ce89745c1647ef629334 100755 (executable)
@@ -9,22 +9,22 @@ IN: tools.files
 
 : dir-or-size ( file-info -- str )
     dup directory? [
-        drop "<DIR>" 20 CHAR: \s pad-right
+        drop "<DIR>" 20 CHAR: \s pad-tail
     ] [
-        size>> number>string 20 CHAR: \s pad-left
+        size>> number>string 20 CHAR: \s pad-head
     ] if ;
 
 : listing-time ( timestamp -- string )
     [ hour>> ] [ minute>> ] bi
-    [ number>string 2 CHAR: 0 pad-left ] bi@ ":" glue ;
+    [ number>string 2 CHAR: 0 pad-head ] bi@ ":" glue ;
 
 : listing-date ( timestamp -- string )
     [ month>> month-abbreviation ]
-    [ day>> number>string 2 CHAR: \s pad-left ]
+    [ day>> number>string 2 CHAR: \s pad-head ]
     [
         dup year>> dup now year>> =
         [ drop listing-time ] [ nip number>string ] if
-        5 CHAR: \s pad-left
+        5 CHAR: \s pad-head
     ] tri 3array " " join ;
 
 : read>string ( ? -- string ) "r" "-" ? ; inline
index d16d6b259515f550e96b145a51bd78fddac6f869..b64676088927e6e52567efece4d676ffb8bca3e7 100644 (file)
@@ -12,13 +12,13 @@ IN: tools.hexdump
     [ >hex write "h" write nl ] bi ;
 
 : write-offset ( lineno -- )
-    16 * >hex 8 CHAR: 0 pad-left write "h: " write ;
+    16 * >hex 8 CHAR: 0 pad-head write "h: " write ;
 
 : >hex-digit ( digit -- str )
-    >hex 2 CHAR: 0 pad-left " " append ;
+    >hex 2 CHAR: 0 pad-head " " append ;
 
 : >hex-digits ( bytes -- str )
-    [ >hex-digit ] { } map-as concat 48 CHAR: \s pad-right ;
+    [ >hex-digit ] { } map-as concat 48 CHAR: \s pad-tail ;
 
 : >ascii ( bytes -- str )
     [ [ printable? ] keep CHAR: . ? ] "" map-as ;
old mode 100644 (file)
new mode 100755 (executable)
index b6e8eb2..acea984
@@ -22,7 +22,7 @@ ERROR: no-vocab vocab ;
 
 : contains-dot? ( string -- ? ) ".." swap subseq? ;
 
-: contains-separator? ( string -- ? ) [ path-separator? ] contains? ;
+: contains-separator? ( string -- ? ) [ path-separator? ] any? ;
 
 : check-vocab-name ( string -- string )
     dup contains-dot? [ vocab-name-contains-dot ] when
@@ -92,7 +92,7 @@ ERROR: no-vocab vocab ;
     ] if ;
 
 : lookup-type ( string -- object/string ? )
-    "new" ?head drop [ [ CHAR: ' = ] [ digit? ] bi or ] trim-right
+    "new" ?head drop [ [ CHAR: ' = ] [ digit? ] bi or ] trim-tail
     H{
         { "object" object } { "obj" object }
         { "quot" quotation }
index 4091cdd90cd0275e210cde4346fef013bd5b70c8..1914da78b2f543e3e9a6dba223b44c0c529d242d 100644 (file)
@@ -9,8 +9,8 @@ IN: tools.vocabs.monitor
 TR: convert-separators "/\\" ".." ;\r
 \r
 : vocab-dir>vocab-name ( path -- vocab )\r
-    trim-left-separators\r
-    trim-right-separators\r
+    trim-head-separators\r
+    trim-tail-separators\r
     convert-separators ;\r
 \r
 : path>vocab-name ( path -- vocab )\r
index 666ebf2f18b2f8eeb3a634810707f1b2a4550a3c..34cff4277790d35a405836b148c3cb12ae1a375f 100755 (executable)
@@ -144,7 +144,7 @@ M: world selection-notify-event
 
 : supported-type? ( atom -- ? )
     { "UTF8_STRING" "STRING" "TEXT" }
-    [ x-atom = ] with contains? ;
+    [ x-atom = ] with any? ;
 
 : clipboard-for-atom ( atom -- clipboard )
     {
old mode 100644 (file)
new mode 100755 (executable)
index 69a8c31..a8bd788
@@ -88,7 +88,7 @@ ducet insert-helpers
 : add ( char -- )\r
     dup blocked? [ 1string , ] [\r
         dup possible-bases dup length\r
-        [ ?combine ] with with contains?\r
+        [ ?combine ] with with any?\r
         [ drop ] [ 1string , ] if\r
     ] if ;\r
 \r
@@ -138,7 +138,7 @@ PRIVATE>
 : insensitive= ( str1 str2 levels-removed -- ? )\r
     [\r
         [ collation-key ] dip\r
-        [ [ 0 = not ] trim-right but-last ] times\r
+        [ [ 0 = not ] trim-tail but-last ] times\r
     ] curry bi@ = ;\r
 PRIVATE>\r
 \r
index e78b4c104a81859c882d6c11ed9c4869ded2ccbe..2407b740b01162a5a5305a7957af19b0ea8ead6e 100644 (file)
@@ -72,7 +72,7 @@ VALUE: properties
 
 : exclusions ( -- set )
     exclusions-file utf8 file-lines
-    [ "#" split1 drop [ blank? ] trim-right hex> ] map harvest ;
+    [ "#" split1 drop [ blank? ] trim-tail hex> ] map harvest ;
 
 : remove-exclusions ( alist -- alist )
     exclusions [ dup ] H{ } map>assoc assoc-diff ;
index 6b70ceee2e1d5318a8f1ab72581d9e5f5f8900b1..9f12bc599bd73ffd8c541b38f08618de86e362ab 100644 (file)
@@ -33,7 +33,7 @@ HOOK: new-utmpx-record os ( -- utmpx-record )
 HOOK: utmpx>utmpx-record os ( utmpx -- utmpx-record )
 
 : memory>string ( alien n -- string )
-    memory>byte-array utf8 decode [ 0 = ] trim-right ;
+    memory>byte-array utf8 decode [ 0 = ] trim-tail ;
 
 M: unix new-utmpx-record
     utmpx-record new ;
index f621384ede3d77c4a9349bd559ae120f1128db44..7fed4b5f58736b7d142b7dbf8853c8670a6c0b67 100644 (file)
@@ -18,7 +18,7 @@ IN: urls.encoding
 
 : push-utf8 ( ch -- )
     1string utf8 encode
-    [ CHAR: % , >hex 2 CHAR: 0 pad-left % ] each ;
+    [ CHAR: % , >hex 2 CHAR: 0 pad-head % ] each ;
 
 PRIVATE>
 
index 337ea22df5b9694318db51366a480cd319a8d18a..6caeb213a5145f8b7ff792ff996d82e42207fc20 100644 (file)
@@ -43,7 +43,7 @@ IN: uuid
     ] dip 76 shift bitor ;
 
 : uuid>string ( n -- string )
-    >hex 32 CHAR: 0 pad-left 
+    >hex 32 CHAR: 0 pad-head 
     [ CHAR: - 20 ] dip insert-nth
     [ CHAR: - 16 ] dip insert-nth 
     [ CHAR: - 12 ] dip insert-nth 
index 05a306640d7a3bccfc1b1a9f9181c6dc8750f349..3d080817bfc561fd8c33b20d94d06fcb21bba4ee 100755 (executable)
@@ -163,10 +163,10 @@ M: ole32-error error.
     ] keep ;
 
 : (guid-section%) ( guid quot len -- )
-    [ call >hex ] dip CHAR: 0 pad-left % ; inline
+    [ call >hex ] dip CHAR: 0 pad-head % ; inline
 
 : (guid-byte%) ( guid byte -- )
-    swap nth >hex 2 CHAR: 0 pad-left % ; inline
+    swap nth >hex 2 CHAR: 0 pad-head % ; inline
 
 : guid>string ( guid -- string )
     [
old mode 100644 (file)
new mode 100755 (executable)
index 924ae56..d286072
@@ -8,7 +8,7 @@ IN: xml.utilities
 : children>string ( tag -- string )
     children>> {
         { [ dup empty? ] [ drop "" ] }
-        { [ dup [ string? not ] contains? ]
+        { [ dup [ string? not ] any? ]
           [ "XML tag unexpectedly contains non-text children" throw ] }
         [ concat ]
     } cond ;
old mode 100644 (file)
new mode 100755 (executable)
index 92bc180..146e67e
@@ -15,7 +15,7 @@ SYMBOL: xml-pprint?
 SYMBOL: indentation\r
 \r
 : sensitive? ( tag -- ? )\r
-    sensitive-tags get swap '[ _ names-match? ] contains? ;\r
+    sensitive-tags get swap '[ _ names-match? ] any? ;\r
 \r
 : indent-string ( -- string )\r
     xml-pprint? get\r
old mode 100644 (file)
new mode 100755 (executable)
index fd749ce..5ca486a
@@ -30,7 +30,7 @@ M: prolog process
 : before-main? ( -- ? )
     xml-stack get {
         [ length 1 = ]
-        [ first second [ tag? ] contains? not ]
+        [ first second [ tag? ] any? not ]
     } 1&& ;
 
 M: directive process
@@ -76,7 +76,7 @@ M: closer process
 
 : no-post-tags ( post -- post/* )
     ! this does *not* affect the contents of the stack
-    dup [ tag? ] contains? [ multitags ] when ; 
+    dup [ tag? ] any? [ multitags ] when ; 
 
 : assure-tags ( seq -- seq )
     ! this does *not* affect the contents of the stack
old mode 100644 (file)
new mode 100755 (executable)
index 798807f..cff0af2
@@ -15,7 +15,7 @@ ascii combinators.short-circuit accessors ;
 : keyword-number? ( keyword -- ? )
     {
         [ current-rule-set highlight-digits?>> ]
-        [ dup [ digit? ] contains? ]
+        [ dup [ digit? ] any? ]
         [
             dup [ digit? ] all? [
                 current-rule-set digit-re>>
old mode 100644 (file)
new mode 100755 (executable)
index e088953..e5c43f3
@@ -82,7 +82,7 @@ ARTICLE: "assocs-sets" "Set-theoretic operations on assocs"
 { $subsection substitute }
 { $subsection substitute-here }
 { $subsection extract-keys }
-{ $see-also key? assoc-contains? assoc-all? "sets" } ;
+{ $see-also key? assoc-any? assoc-all? "sets" } ;
 
 ARTICLE: "assocs-mutation" "Storing keys and values in assocs"
 "Utility operations built up from the " { $link "assocs-protocol" } ":"
@@ -115,7 +115,7 @@ $nl
 { $subsection assoc-map }
 { $subsection assoc-filter }
 { $subsection assoc-filter-as }
-{ $subsection assoc-contains? }
+{ $subsection assoc-any? }
 { $subsection assoc-all? }
 "Additional combinators:"
 { $subsection cache }
@@ -231,7 +231,7 @@ HELP: assoc-filter-as
 
 { assoc-filter assoc-filter-as } related-words
 
-HELP: assoc-contains?
+HELP: assoc-any?
 { $values { "assoc" assoc } { "quot" { $quotation "( key value -- ? )" } } { "?" "a boolean" } }
 { $description "Tests if the assoc contains an entry satisfying a predicate by applying the quotation to each entry in turn. Iteration stops if an entry is found for which the quotation outputs a true value." } ;
 
old mode 100644 (file)
new mode 100755 (executable)
index 730c9f6..e46bb7a
@@ -70,11 +70,11 @@ PRIVATE>
     [ (assoc-each) partition ] [ drop ] 2bi
     tuck [ assoc-like ] 2bi@ ; inline
 
-: assoc-contains? ( assoc quot -- ? )
+: assoc-any? ( assoc quot -- ? )
     assoc-find 2nip ; inline
 
 : assoc-all? ( assoc quot -- ? )
-    [ not ] compose assoc-contains? not ; inline
+    [ not ] compose assoc-any? not ; inline
 
 : at ( key assoc -- value/f )
     at* drop ; inline
index a3662fcaa62e3f6b86e6ed0dbeec441b7188273f..98d36b21c33d89dcdccd55cc9210c7b8068fa0ae 100644 (file)
@@ -25,4 +25,4 @@ M: checksum checksum-lines
     [ normalize-path (file-reader) ] dip checksum-stream ;
 
 : hex-string ( seq -- str )
-    [ >hex 2 CHAR: 0 pad-left ] { } map-as concat ;
+    [ >hex 2 CHAR: 0 pad-head ] { } map-as concat ;
old mode 100644 (file)
new mode 100755 (executable)
index e71379a..825cd67
@@ -66,10 +66,10 @@ DEFER: (class-or)
     [ members>> ] dip [ class<= ] curry all? ;\r
 \r
 : right-anonymous-union<= ( first second -- ? )\r
-    members>> [ class<= ] with contains? ;\r
+    members>> [ class<= ] with any? ;\r
 \r
 : left-anonymous-intersection<= ( first second -- ? )\r
-    [ participants>> ] dip [ class<= ] curry contains? ;\r
+    [ participants>> ] dip [ class<= ] curry any? ;\r
 \r
 : right-anonymous-intersection<= ( first second -- ? )\r
     participants>> [ class<= ] with all? ;\r
@@ -125,7 +125,7 @@ PREDICATE: empty-intersection < anonymous-intersection participants>> empty? ;
     ] if ;\r
 \r
 M: anonymous-union (classes-intersect?)\r
-    members>> [ classes-intersect? ] with contains? ;\r
+    members>> [ classes-intersect? ] with any? ;\r
 \r
 M: anonymous-intersection (classes-intersect?)\r
     participants>> [ classes-intersect? ] with all? ;\r
@@ -203,7 +203,7 @@ M: anonymous-complement (classes-intersect?)
     [ class<= ] [ swap class<= ] 2bi and ;\r
 \r
 : largest-class ( seq -- n elt )\r
-    dup [ [ class< ] with contains? not ] curry find-last\r
+    dup [ [ class< ] with any? not ] curry find-last\r
     [ "Topological sort failed" throw ] unless* ;\r
 \r
 : sort-classes ( seq -- newseq )\r
old mode 100644 (file)
new mode 100755 (executable)
index 32db9a3..6f990d0
@@ -6,5 +6,5 @@ USING: tools.test words sequences kernel memory accessors ;
     [
         [ name>> "f?" = ]
         [ vocabulary>> "syntax" = ] bi and
-    ] contains?
+    ] any?
 ] unit-test
old mode 100644 (file)
new mode 100755 (executable)
index 4f40d83..6147dcf
@@ -148,7 +148,7 @@ ERROR: bad-superclass class ;
 
 : tuple-prototype ( class -- prototype )
     [ initial-values ] keep
-    over [ ] contains? [ slots>tuple ] [ 2drop f ] if ;
+    over [ ] any? [ slots>tuple ] [ 2drop f ] if ;
 
 : define-tuple-prototype ( class -- )
     dup tuple-prototype "prototype" set-word-prop ;
old mode 100644 (file)
new mode 100755 (executable)
index 81a0db5..e0e86e4
@@ -31,7 +31,7 @@ M: union-class update-class define-union-predicate ;
 M: union-class rank-class drop 2 ;
 
 M: union-class instance?
-    "members" word-prop [ instance? ] with contains? ;
+    "members" word-prop [ instance? ] with any? ;
 
 M: union-class (flatten-class)
     members <anonymous-union> (flatten-class) ;
old mode 100644 (file)
new mode 100755 (executable)
index 29a2e7a..c4c18c1
@@ -127,9 +127,9 @@ ERROR: no-case ;
 : case>quot ( default assoc -- quot )
     dup keys {
         { [ dup empty? ] [ 2drop ] }
-        { [ dup [ length 4 <= ] [ [ word? ] contains? ] bi or ] [ drop linear-case-quot ] }
+        { [ dup [ length 4 <= ] [ [ word? ] any? ] bi or ] [ drop linear-case-quot ] }
         { [ dup contiguous-range? ] [ drop dispatch-case-quot ] }
-        { [ dup [ wrapper? ] contains? not ] [ drop hash-case-quot ] }
+        { [ dup [ wrapper? ] any? not ] [ drop hash-case-quot ] }
         { [ dup [ wrapper? ] all? ] [ drop [ [ wrapped>> ] dip ] assoc-map hash-case-quot ] }
         [ drop linear-case-quot ]
     } cond ;
old mode 100644 (file)
new mode 100755 (executable)
index aae7618..5465ee1
@@ -141,7 +141,7 @@ M: integer generic-forget-test-1 / ;
 
 [ t ] [
     \ / usage [ word? ] filter
-    [ name>> "integer=>generic-forget-test-1" = ] contains?
+    [ name>> "integer=>generic-forget-test-1" = ] any?
 ] unit-test
 
 [ ] [
@@ -150,7 +150,7 @@ M: integer generic-forget-test-1 / ;
 
 [ f ] [
     \ / usage [ word? ] filter
-    [ name>> "integer=>generic-forget-test-1" = ] contains?
+    [ name>> "integer=>generic-forget-test-1" = ] any?
 ] unit-test
 
 GENERIC: generic-forget-test-2 ( a b -- c )
@@ -159,7 +159,7 @@ M: sequence generic-forget-test-2 = ;
 
 [ t ] [
     \ = usage [ word? ] filter
-    [ name>> "sequence=>generic-forget-test-2" = ] contains?
+    [ name>> "sequence=>generic-forget-test-2" = ] any?
 ] unit-test
 
 [ ] [
@@ -168,7 +168,7 @@ M: sequence generic-forget-test-2 = ;
 
 [ f ] [
     \ = usage [ word? ] filter
-    [ name>> "sequence=>generic-forget-test-2" = ] contains?
+    [ name>> "sequence=>generic-forget-test-2" = ] any?
 ] unit-test
 
 GENERIC: generic-forget-test-3 ( a -- b )
index e81d8c2bfdaec7525f34b53e4dc0342e2906d011..1673e730830ba3d30596d14afe8b764540f93e1a 100644 (file)
@@ -10,11 +10,11 @@ SYMBOL: current-directory
 
 : path-separator ( -- string ) os windows? "\\" "/" ? ;
 
-: trim-right-separators ( str -- newstr )
-    [ path-separator? ] trim-right ;
+: trim-tail-separators ( str -- newstr )
+    [ path-separator? ] trim-tail ;
 
-: trim-left-separators ( str -- newstr )
-    [ path-separator? ] trim-left ;
+: trim-head-separators ( str -- newstr )
+    [ path-separator? ] trim-head ;
 
 : last-path-separator ( path -- n ? )
     [ length 1- ] keep [ path-separator? ] find-last-from ;
@@ -28,7 +28,7 @@ ERROR: no-parent-directory path ;
 
 : parent-directory ( path -- parent )
     dup root-directory? [
-        trim-right-separators
+        trim-tail-separators
         dup last-path-separator [
             1+ cut
         ] [
@@ -55,7 +55,7 @@ ERROR: no-parent-directory path ;
 : append-path-empty ( path1 path2 -- path' )
     {
         { [ dup head.? ] [
-            rest trim-left-separators append-path-empty
+            rest trim-head-separators append-path-empty
         ] }
         { [ dup head..? ] [ drop no-parent-directory ] }
         [ nip ]
@@ -84,19 +84,19 @@ PRIVATE>
     {
         { [ over empty? ] [ append-path-empty ] }
         { [ dup empty? ] [ drop ] }
-        { [ over trim-right-separators "." = ] [ nip ] }
+        { [ over trim-tail-separators "." = ] [ nip ] }
         { [ dup absolute-path? ] [ nip ] }
-        { [ dup head.? ] [ rest trim-left-separators append-path ] }
+        { [ dup head.? ] [ rest trim-head-separators append-path ] }
         { [ dup head..? ] [
-            2 tail trim-left-separators
+            2 tail trim-head-separators
             [ parent-directory ] dip append-path
         ] }
         { [ over absolute-path? over first path-separator? and ] [
             [ 2 head ] dip append
         ] }
         [
-            [ trim-right-separators "/" ] dip
-            trim-left-separators 3append
+            [ trim-tail-separators "/" ] dip
+            trim-head-separators 3append
         ]
     } cond ;
 
@@ -105,7 +105,7 @@ PRIVATE>
 
 : file-name ( path -- string )
     dup root-directory? [
-        trim-right-separators
+        trim-tail-separators
         dup last-path-separator [ 1+ tail ] [
             drop "resource:" ?head [ file-name ] when
         ] if
@@ -121,7 +121,7 @@ GENERIC: (normalize-path) ( path -- path' )
 
 M: string (normalize-path)
     "resource:" ?head [
-        trim-left-separators resource-path
+        trim-head-separators resource-path
         (normalize-path)
     ] [
         current-directory get prepend-path
@@ -140,4 +140,4 @@ M: pathname <=> [ string>> ] compare ;
 
 HOOK: home io-backend ( -- dir )
 
-M: object home "" resource-path ;
\ No newline at end of file
+M: object home "" resource-path ;
old mode 100644 (file)
new mode 100755 (executable)
index ea7cf82..f213be4
@@ -393,7 +393,7 @@ HELP: find-last-from
 { $values { "n" "a starting index" } { "seq" sequence } { "quot" { $quotation "( elt -- ? )" } } { "i" "the index of the first match, or f" } { "elt" "the first matching element, or " { $link f } } }
 { $description "Applies the quotation to each element of the sequence in reverse order, until it outputs a true value or the start of the sequence is reached. If the quotation yields a true value for some sequence element, the word outputs the element index and the element itself. Otherwise, the word outputs an index of f and " { $link f } " as the element." } ;
 
-HELP: contains?
+HELP: any?
 { $values { "seq" sequence } { "quot" { $quotation "( elt -- ? )" } } { "?" "a boolean" } }
 { $description "Tests if the sequence contains an element satisfying the predicate, by applying the predicate to each element in turn until a true value is found. If the sequence is empty or if the end of the sequence is reached, outputs " { $link f } "." } ;
 
@@ -575,15 +575,15 @@ HELP: padding
 { $values { "seq" sequence } { "n" "a non-negative integer" } { "elt" object } { "quot" { $quotation "( seq1 seq2 -- newseq )" } } { "newseq" "a new sequence" } }
 { $description "Outputs a new string sequence of " { $snippet "elt" } " repeated, that when appended to " { $snippet "seq" } ", yields a sequence of length " { $snippet "n" } ". If the length of " { $snippet "seq" } " is greater than " { $snippet "n" } ", this word outputs an empty sequence." } ;
 
-HELP: pad-left
+HELP: pad-head
 { $values { "seq" sequence } { "n" "a non-negative integer" } { "elt" object } { "padded" "a new sequence" } }
 { $description "Outputs a new sequence consisting of " { $snippet "seq" } " padded on the left with enough repetitions of " { $snippet "elt" } " to have the result be of length " { $snippet "n" } "." }
-{ $examples { $example "USING: io sequences ;" "{ \"ab\" \"quux\" } [ 5 CHAR: - pad-left print ] each" "---ab\n-quux" } } ;
+{ $examples { $example "USING: io sequences ;" "{ \"ab\" \"quux\" } [ 5 CHAR: - pad-head print ] each" "---ab\n-quux" } } ;
 
-HELP: pad-right
+HELP: pad-tail
 { $values { "seq" sequence } { "n" "a non-negative integer" } { "elt" object } { "padded" "a new sequence" } }
 { $description "Outputs a new sequence consisting of " { $snippet "seq" } " padded on the right with enough repetitions of " { $snippet "elt" } " to have the result be of length " { $snippet "n" } "." }
-{ $examples { $example "USING: io sequences ;" "{ \"ab\" \"quux\" } [ 5 CHAR: - pad-right print ] each" "ab---\nquux-" } } ;
+{ $examples { $example "USING: io sequences ;" "{ \"ab\" \"quux\" } [ 5 CHAR: - pad-tail print ] each" "ab---\nquux-" } } ;
 
 HELP: sequence=
 { $values { "seq1" sequence } { "seq2" sequence } { "?" "a boolean" } }
@@ -960,43 +960,43 @@ HELP: pusher
 }
 { $notes "Used to implement the " { $link filter } " word." } ;
 
-HELP: trim-left
+HELP: trim-head
 { $values
      { "seq" sequence } { "quot" quotation }
      { "newseq" sequence } }
 { $description "Removes elements starting from the left side of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a new sequence." }
 { $example "" "USING: prettyprint math sequences ;"
-           "{ 0 0 1 2 3 0 0 } [ zero? ] trim-left ."
+           "{ 0 0 1 2 3 0 0 } [ zero? ] trim-head ."
            "{ 1 2 3 0 0 }"
 } ;
 
-HELP: trim-left-slice
+HELP: trim-head-slice
 { $values
      { "seq" sequence } { "quot" quotation }
      { "slice" slice } }
 { $description "Removes elements starting from the left side of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a slice" }
 { $example "" "USING: prettyprint math sequences ;"
-           "{ 0 0 1 2 3 0 0 } [ zero? ] trim-left-slice ."
+           "{ 0 0 1 2 3 0 0 } [ zero? ] trim-head-slice ."
            "T{ slice { from 2 } { to 7 } { seq { 0 0 1 2 3 0 0 } } }"
 } ;
 
-HELP: trim-right
+HELP: trim-tail
 { $values
      { "seq" sequence } { "quot" quotation }
      { "newseq" sequence } }
 { $description "Removes elements starting from the right side of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a new sequence." }
 { $example "" "USING: prettyprint math sequences ;"
-           "{ 0 0 1 2 3 0 0 } [ zero? ] trim-right ."
+           "{ 0 0 1 2 3 0 0 } [ zero? ] trim-tail ."
            "{ 0 0 1 2 3 }"
 } ;
 
-HELP: trim-right-slice
+HELP: trim-tail-slice
 { $values
      { "seq" sequence } { "quot" quotation }
      { "slice" slice } }
 { $description "Removes elements starting from the right side of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a slice." }
 { $example "" "USING: prettyprint math sequences ;"
-           "{ 0 0 1 2 3 0 0 } [ zero? ] trim-right-slice ."
+           "{ 0 0 1 2 3 0 0 } [ zero? ] trim-tail-slice ."
            "T{ slice { from 0 } { to 5 } { seq { 0 0 1 2 3 0 0 } } }"
 } ;
 
@@ -1020,7 +1020,7 @@ HELP: trim-slice
            "T{ slice { from 2 } { to 5 } { seq { 0 0 1 2 3 0 0 } } }"
 } ;
 
-{ trim trim-slice trim-left trim-left-slice trim-right trim-right-slice } related-words
+{ trim trim-slice trim-head trim-head-slice trim-tail trim-tail-slice } related-words
 
 HELP: sift
 { $values
@@ -1407,8 +1407,8 @@ ARTICLE: "sequences-appending" "Appending sequences"
 { $subsection concat }
 { $subsection join }
 "A pair of words useful for aligning strings:"
-{ $subsection pad-left }
-{ $subsection pad-right } ;
+{ $subsection pad-head }
+{ $subsection pad-tail } ;
 
 ARTICLE: "sequences-slices" "Subsequences and slices"
 "Extracting a subsequence:"
@@ -1463,7 +1463,7 @@ ARTICLE: "sequences-combinators" "Sequence combinators"
 { $subsection push-if }
 { $subsection filter }
 "Testing if a sequence contains elements satisfying a predicate:"
-{ $subsection contains? }
+{ $subsection any? }
 { $subsection all? }
 { $subsection "sequence-2combinators" }
 { $subsection "sequence-3combinators" } ;
@@ -1513,12 +1513,12 @@ ARTICLE: "sequences-search" "Searching sequences"
 ARTICLE: "sequences-trimming" "Trimming sequences"
 "Trimming words:"
 { $subsection trim }
-{ $subsection trim-left }
-{ $subsection trim-right }
+{ $subsection trim-head }
+{ $subsection trim-tail }
 "Potentially more efficient trim:"
 { $subsection trim-slice }
-{ $subsection trim-left-slice }
-{ $subsection trim-right-slice } ;
+{ $subsection trim-head-slice }
+{ $subsection trim-tail-slice } ;
 
 ARTICLE: "sequences-destructive-discussion" "When to use destructive operations"
 "Constructive (non-destructive) operations should be preferred where possible because code without side-effects is usually more re-usable and easier to reason about. There are two main reasons to use destructive operations:"
index 85c4636822ad60414b83d192957f75f6adf8ac13..4ee860f384930f5f0d52434460e64a2d81c771fe 100644 (file)
@@ -225,13 +225,13 @@ unit-test
 
 [ -1./0. 0 delete-nth ] must-fail
 [ "" ] [ "" [ CHAR: \s = ] trim ] unit-test
-[ "" ] [ "" [ CHAR: \s = ] trim-left ] unit-test
-[ "" ] [ "" [ CHAR: \s = ] trim-right ] unit-test
-[ "" ] [ "  " [ CHAR: \s = ] trim-left ] unit-test
-[ "" ] [ "  " [ CHAR: \s = ] trim-right ] unit-test
+[ "" ] [ "" [ CHAR: \s = ] trim-head ] unit-test
+[ "" ] [ "" [ CHAR: \s = ] trim-tail ] unit-test
+[ "" ] [ "  " [ CHAR: \s = ] trim-head ] unit-test
+[ "" ] [ "  " [ CHAR: \s = ] trim-tail ] unit-test
 [ "asdf" ] [ " asdf " [ CHAR: \s = ] trim ] unit-test
-[ "asdf " ] [ " asdf " [ CHAR: \s = ] trim-left ] unit-test
-[ " asdf" ] [ " asdf " [ CHAR: \s = ] trim-right ] unit-test
+[ "asdf " ] [ " asdf " [ CHAR: \s = ] trim-head ] unit-test
+[ " asdf" ] [ " asdf " [ CHAR: \s = ] trim-tail ] unit-test
 
 [ 328350 ] [ 100 [ sq ] sigma ] unit-test
 
old mode 100644 (file)
new mode 100755 (executable)
index 2a5c0c6..2c30a62
@@ -524,14 +524,14 @@ PRIVATE>
 : nths ( indices seq -- seq' )
     [ nth ] curry map ;
 
-: contains? ( seq quot -- ? )
+: any? ( seq quot -- ? )
     find drop >boolean ; inline
 
 : member? ( elt seq -- ? )
-    [ = ] with contains? ;
+    [ = ] with any? ;
 
 : memq? ( elt seq -- ? )
-    [ eq? ] with contains? ;
+    [ eq? ] with any? ;
 
 : remove ( elt seq -- newseq )
     [ = not ] with filter ;
@@ -711,10 +711,10 @@ PRIVATE>
         [ <repetition> ] curry
     ] dip compose if ; inline
 
-: pad-left ( seq n elt -- padded )
+: pad-head ( seq n elt -- padded )
     [ swap dup append-as ] padding ;
 
-: pad-right ( seq n elt -- padded )
+: pad-tail ( seq n elt -- padded )
     [ append ] padding ;
 
 : shorter? ( seq1 seq2 -- ? ) [ length ] bi@ < ;
@@ -816,22 +816,22 @@ PRIVATE>
     dup slice? [ { } like ] when 0 over length rot <slice> ;
     inline
 
-: trim-left-slice ( seq quot -- slice )
+: trim-head-slice ( seq quot -- slice )
     over [ [ not ] compose find drop ] dip swap
     [ tail-slice ] [ dup length tail-slice ] if* ; inline
     
-: trim-left ( seq quot -- newseq )
-    over [ trim-left-slice ] dip like ; inline
+: trim-head ( seq quot -- newseq )
+    over [ trim-head-slice ] dip like ; inline
 
-: trim-right-slice ( seq quot -- slice )
+: trim-tail-slice ( seq quot -- slice )
     over [ [ not ] compose find-last drop ] dip swap
     [ 1+ head-slice ] [ 0 head-slice ] if* ; inline
 
-: trim-right ( seq quot -- newseq )
-    over [ trim-right-slice ] dip like ; inline
+: trim-tail ( seq quot -- newseq )
+    over [ trim-tail-slice ] dip like ; inline
 
 : trim-slice ( seq quot -- slice )
-    [ trim-left-slice ] [ trim-right-slice ] bi ; inline
+    [ trim-head-slice ] [ trim-tail-slice ] bi ; inline
 
 : trim ( seq quot -- newseq )
     over [ trim-slice ] dip like ; inline
old mode 100644 (file)
new mode 100755 (executable)
index 428bf10..a122aa1
@@ -22,7 +22,7 @@ $nl
 "Adding elements to sets:"
 { $subsection adjoin }
 { $subsection conjoin }
-{ $see-also member? memq? contains? all? "assocs-sets" } ;
+{ $see-also member? memq? any? all? "assocs-sets" } ;
 
 ABOUT: "sets"
 
old mode 100644 (file)
new mode 100755 (executable)
index 3435298..062b624
@@ -41,7 +41,7 @@ PRIVATE>
     tester filter ;
 
 : intersects? ( seq1 seq2 -- ? )
-    tester contains? ;
+    tester any? ;
 
 : diff ( seq1 seq2 -- newseq )
     tester [ not ] compose filter ;
index 810e9051d8637b3a2543fcbab03f6db70148cf60..5b71b13552f386b7d0aa7aaf236cc671af927a30 100644 (file)
@@ -43,8 +43,8 @@ IN: strings.tests
 ]
 unit-test
 
-[ "05" ] [ "5" 2 CHAR: 0 pad-left ] unit-test
-[ "666" ] [ "666" 2 CHAR: 0 pad-left ] unit-test
+[ "05" ] [ "5" 2 CHAR: 0 pad-head ] unit-test
+[ "666" ] [ "666" 2 CHAR: 0 pad-head ] unit-test
 
 [ 1 "" nth ] must-fail
 [ -6 "hello" nth ] must-fail
old mode 100644 (file)
new mode 100755 (executable)
index 10c17a0..a22b6a5
@@ -188,7 +188,7 @@ SYMBOL: quot-uses-b
 [
     all-words [
         "compiled-uses" word-prop
-        keys [ "forgotten" word-prop ] contains?
+        keys [ "forgotten" word-prop ] any?
     ] filter
 ] unit-test
 
old mode 100644 (file)
new mode 100755 (executable)
index 6a3b63a..3197d0a
@@ -144,7 +144,7 @@ SYMBOL: visited
             crossref get at keys
             [ word? ] filter
             [
-                [ reset-on-redefine [ word-prop ] with contains? ]
+                [ reset-on-redefine [ word-prop ] with any? ]
                 [ inline? ]
                 bi or
             ] filter
index 900152149054d942f7c2280807eac6de4dc154ae..35f02f86351661bdab577380a6159aadbdbc8c2f 100644 (file)
@@ -22,7 +22,7 @@ VAR: rule   VAR: rule-number
     { 0 0 1 }
     { 0 0 0 } } ;
 
-: rule-values ( n -- seq ) >bin 8 CHAR: 0 pad-left string>digits ;
+: rule-values ( n -- seq ) >bin 8 CHAR: 0 pad-head string>digits ;
 
 : set-rule ( n -- )
   dup >rule-number rule-values rule-keys [ rule> set-at ] 2each ;
old mode 100644 (file)
new mode 100755 (executable)
index 2ba6ed9..f96dc77
@@ -26,10 +26,10 @@ IN: benchmark.beust2
                 ] if
             ] [ f ] if
         ]
-    ] contains? ; inline recursive
+    ] any? ; inline recursive
 
 :: count-numbers ( max listener -- )
-    10 [ 1+ 1 1 0 max listener (count-numbers) ] contains? drop ;
+    10 [ 1+ 1 1 0 max listener (count-numbers) ] any? drop ;
     inline
 
 :: beust ( -- )
index 7e65059643f6ff17d237dee32baeed49b68cb77c..5264cd26de0835a893d08bc49c2fc4e668bed765 100644 (file)
@@ -8,7 +8,7 @@ IN: benchmark.knucleotide
     swap >float number>string
     "." split1 rot
     over length over <
-    [ CHAR: 0 pad-right ] 
+    [ CHAR: 0 pad-tail ] 
     [ head ] if "." glue ;
 
 : discard-lines ( -- )
index 8cb5acf74bda955558c97b140c18cba07272c078..33e5e92e29d00cd59e091fa4b4effc0651894225 100644 (file)
@@ -74,7 +74,7 @@ METHOD: satisfiable? { ⊥ } drop f ;
     [ \ ¬ instance? ] partition [ x>> ] map intersect empty? ;
 
 METHOD: satisfiable? { □ }
-    cnf [ (satisfiable?) ] contains? ;
+    cnf [ (satisfiable?) ] any? ;
 
 GENERIC: (expr.) ( expr -- )
 
index 62103bf5103fa159346fe53d616fc6c8977d0082..73b15b947315dd6fc84848f1b75f959a1c408ae3 100755 (executable)
@@ -27,7 +27,7 @@ MEMO: ipad ( -- seq ) 64 HEX: 36 <array> ;
 MEMO: opad ( -- seq ) 64 HEX: 5c <array> ;
 
 : init-hmac ( K -- o i )
-    64 0 pad-right 
+    64 0 pad-tail 
     [ opad seq-bitxor ] keep
     ipad seq-bitxor ;
 
index 151e66380d38a337d52f497c896683a58ea18554..37870abb0e4f2fffd9179bbc2c3f70a0cb775ca0 100644 (file)
@@ -73,7 +73,7 @@ IN: easy-help
   string-lines
   1 tail
   [ dup "    " head? [ 4 tail ] [ ] if ] map
-  [ " " split1 [ " " first = ] trim-left 2array ] map
+  [ " " split1 [ " " first = ] trim-head 2array ] map
   \ $values prefix
   parsed
 
index 924a6d38142e3aff9c98ee01d9e3683f18d64b32..a86e673c9cde4540ceb1369f2bc45658a4b27528 100755 (executable)
@@ -86,7 +86,7 @@ SYMBOL: visited
 : flattenable? ( object -- ? )
     { [ word? ] [ primitive? not ] [
         { "inverse" "math-inverse" "pop-inverse" }
-        [ word-prop ] with contains? not
+        [ word-prop ] with any? not
     ] } 1&& ; 
 
 : flatten ( quot -- expanded )
@@ -230,7 +230,7 @@ DEFER: _
 
 : empty-inverse ( class -- quot )
     deconstruct-pred
-    [ tuple>array rest [ ] contains? [ fail ] when ]
+    [ tuple>array rest [ ] any? [ fail ] when ]
     compose ;
 
 \ new 1 [ ?wrapped empty-inverse ] define-pop-inverse
old mode 100644 (file)
new mode 100755 (executable)
index d3c8f72..998f2d4
@@ -98,8 +98,8 @@ def-hash get-global [ drop empty? not ] assoc-filter
 
 [
     drop {
-        [ [ wrapper? ] deep-contains? ]
-        [ [ hashtable? ] deep-contains? ]
+        [ [ wrapper? ] deep-any? ]
+        [ [ hashtable? ] deep-any? ]
     } 1|| not
 ] assoc-filter
 
index 522f149bc1c7dbfd92fd814a6ed3091cc3f7fc83..e6e92919e2014bb4afdad9554609e8e0245d066e 100644 (file)
@@ -32,9 +32,9 @@ IN: math.floating-point
 : double. ( double -- )
     double>bits
     [ (double-sign) .b ]
-    [ (double-exponent-bits) >bin 11 CHAR: 0 pad-left bl print ]
+    [ (double-exponent-bits) >bin 11 CHAR: 0 pad-head bl print ]
     [
-        (double-mantissa-bits) >bin 52 CHAR: 0 pad-left
+        (double-mantissa-bits) >bin 52 CHAR: 0 pad-head
         11 [ bl ] times print
     ] tri ;
 
index 553c473cce17721394d3d085dbe0f4d921b7299a..1b9dee74b7ec6e9d7d6c513e02888bbaaf29304d 100644 (file)
@@ -12,7 +12,7 @@ CHAR: $ \ currency-token set-global
 : (money>string) ( dollars cents -- string )
     [ number>string ] bi@
     [ <reversed> 3 group "," join <reversed> ]
-    [ 2 CHAR: 0 pad-left ] bi* "." glue ;
+    [ 2 CHAR: 0 pad-head ] bi* "." glue ;
 
 : money>string ( object -- string )
     dollars/cents (money>string) currency-token get prefix ;
index 69f7a3bb921c9226db30cc5d4106dbbaf2d4241f..8afbb2d03b88fa0dba45aa5d72f49591e65adf88 100755 (executable)
@@ -175,11 +175,11 @@ M: or-parser parse ( input parser1 -- list )
     parsers>> 0 swap seq>list
     [ parse ] lazy-map-with lconcat ;
 
-: trim-left-slice ( string -- string )
+: trim-head-slice ( string -- string )
     #! Return a new string without any leading whitespace
     #! from the original string.
     dup empty? [
-        dup first blank? [ rest-slice trim-left-slice ] when
+        dup first blank? [ rest-slice trim-head-slice ] when
     ] unless ;
 
 TUPLE: sp-parser p1 ;
@@ -191,7 +191,7 @@ C: sp sp-parser ( p1 -- parser )
 M: sp-parser parse ( input parser -- list )
     #! Skip all leading whitespace from the input then call
     #! the parser on the remaining input.
-    [ trim-left-slice ] dip p1>> parse ;
+    [ trim-head-slice ] dip p1>> parse ;
 
 TUPLE: just-parser p1 ;
 
index 3b330dbe4b1e08aba4d73389e1dc9aa4b5784ec9..21e9ec8e60c1024facd98e59c137fb831eb44e61 100644 (file)
@@ -73,7 +73,7 @@ PRIVATE>
 <PRIVATE
 
 : candidates ( n -- seq )
-    1000 over <range> [ number>digits 3 0 pad-left ] map [ all-unique? ] filter ;
+    1000 over <range> [ number>digits 3 0 pad-head ] map [ all-unique? ] filter ;
 
 : overlap? ( seq -- ? )
     [ first 2 tail* ] [ second 2 head ] bi = ;
old mode 100644 (file)
new mode 100755 (executable)
index 7f5ad9e..b5ff6a9
@@ -33,7 +33,7 @@ IN: project-euler.046
     2 /i sqrt >integer [1,b] [ sq ] map ;
 
 : fits-conjecture? ( n -- ? )
-    dup perfect-squares [ 2 * - ] with map [ prime? ] contains? ;
+    dup perfect-squares [ 2 * - ] with map [ prime? ] any? ;
 
 : next-odd-composite ( n -- m )
     dup odd? [ 2 + ] [ 1+ ] if dup prime? [ next-odd-composite ] when ;
index bbeeff1eec8b0b83db2f67a0bf3bb506ce4a1bb4..0abd753c0989adca62db594e097c945a7c6ac2c3 100644 (file)
@@ -53,7 +53,7 @@ IN: project-euler.059
 
 : source-059 ( -- seq )
     "resource:extra/project-euler/059/cipher1.txt"
-    ascii file-contents [ blank? ] trim-right "," split
+    ascii file-contents [ blank? ] trim-tail "," split
     [ string>number ] map ;
 
 TUPLE: rollover seq n ;
index 318cf8a2bb33123cecc562a08fee322bdf69f916..f5bc95a8f713f41e36920a15be1a9503e094d3cd 100644 (file)
@@ -31,7 +31,7 @@ IN: project-euler
     print readln string>number ;
 
 : number>euler ( n -- str )
-    number>string 3 CHAR: 0 pad-left ;
+    number>string 3 CHAR: 0 pad-head ;
 
 : solution-path ( n -- str/f )
     number>euler "project-euler." prepend
old mode 100644 (file)
new mode 100755 (executable)
index c02242e..1554d3d
@@ -13,13 +13,13 @@ SYMBOL: board
 : >board ( row m n -- ) row set-nth ;
 : f>board ( m n -- ) f -rot >board ;
 
-: row-contains? ( n y -- ? ) row member? ;
-: col-contains? ( n x -- ? ) board get swap <column> member? ;
-: cell-contains? ( n x y i -- ? ) 3 /mod pair+ board> = ;
+: row-any? ( n y -- ? ) row member? ;
+: col-any? ( n x -- ? ) board get swap <column> member? ;
+: cell-any? ( n x y i -- ? ) 3 /mod pair+ board> = ;
 
-: box-contains? ( n x y -- ? )
+: box-any? ( n x y -- ? )
     [ 3 /i 3 * ] bi@
-    9 [ [ 3dup ] dip cell-contains? ] contains?
+    9 [ [ 3dup ] dip cell-any? ] any?
     [ 3drop ] dip ;
 
 DEFER: search
@@ -29,9 +29,9 @@ DEFER: search
 
 : attempt ( n x y -- )
     {
-        { [ 3dup nip row-contains? ] [ 3drop ] }
-        { [ 3dup drop col-contains? ] [ 3drop ] }
-        { [ 3dup box-contains? ] [ 3drop ] }
+        { [ 3dup nip row-any? ] [ 3drop ] }
+        { [ 3dup drop col-any? ] [ 3drop ] }
+        { [ 3dup box-any? ] [ 3drop ] }
         [ assume ]
     } cond ;
 
index d9c39ca6cf751325890dd6466674fec5ba1702f6..00a49fb2a27851c69701e0eca9838d50c1657b58 100644 (file)
@@ -10,7 +10,7 @@ IN: system-info.linux
 : uname ( -- seq )
     65536 "char" <c-array> [ (uname) io-error ] keep
     "\0" split harvest [ >string ] map
-    6 "" pad-right ;
+    6 "" pad-tail ;
 
 : sysname ( -- string ) uname first ;
 : nodename ( -- string ) uname second ;
@@ -20,4 +20,4 @@ IN: system-info.linux
 : domainname ( -- string ) uname 5 swap nth ;
 
 : kernel-version ( -- seq )
-    release ".-" split harvest 5 "" pad-right ;
+    release ".-" split harvest 5 "" pad-tail ;
index bccaeb0103eb1fcbcff99327ab2b143bfc876489..a4413c07b39f074f6b1114a766116af3f6c634f1 100755 (executable)
@@ -17,7 +17,7 @@ SYMBOLS: base-dir filename ;
 : tar-trim ( seq -- newseq ) [ "\0 " member? ] trim ;
 
 : read-c-string* ( n -- str/f )
-    read [ zero? ] trim-right [ f ] when-empty ;
+    read [ zero? ] trim-tail [ f ] when-empty ;
 
 : read-tar-header ( -- obj )
     \ tar-header new
@@ -139,7 +139,7 @@ M: unknown-typeflag summary ( obj -- str )
 : typeflag-L ( header -- )
     drop ;
     ! <string-writer> [ read-data-blocks ] keep
-    ! >string [ zero? ] trim-right filename set
+    ! >string [ zero? ] trim-tail filename set
     ! filename get tar-prepend-path make-directories ;
 
 ! Multi volume continuation entry
old mode 100644 (file)
new mode 100755 (executable)
index 90a3d46..7d847c7
@@ -49,10 +49,10 @@ syn keyword factorCompileDirective inline foldable parsing
 
 " kernel vocab keywords
 syn keyword factorKeyword or construct-delegate set-slots tuck 2bi 2tri while wrapper nip bi* wrapper? hashcode callstack>array both? die set-delegate dupd callstack callstack? 3dup tri@ pick curry build prepose 3bi >boolean ?if clone eq? tri* ? = swapd call-clear 2over 2keep 3keep construct clear 2dup when not tuple? 3compose dup 2bi* call object bi@ wrapped unless* if* >r curry-quot drop when* retainstack -rot 2bi@ delegate boa with 3slip slip compose-first compose-second 3drop either? bi curry? datastack curry-obj over 3curry roll throw swap and 2nip set-retainstack (clone) hashcode* get-slots compose spin if 3tri unless compose? tuple keep 2curry equal? set-datastack 2slip tri 2drop most <wrapper> identity-tuple? null r> new set-callstack dip xor rot -roll identity-tuple 
-syn keyword factorKeyword assoc? assoc-clone-like delete-any assoc= delete-at* new-assoc subassoc? assoc-size map>assoc search-alist assoc-like key? assoc-intersect update assoc-union at* assoc-empty? at+ set-enum-seq set-at assoc-all? assoc-hashcode change-at assoc-each assoc-diff zip values value-at rename-at (assoc-stack) enum? at cache assoc>map assoc-contains? <enum> assoc assoc-map assoc-pusher (assoc>map) enum assoc-push-if remove-all >alist (substitute) substitute-here clear-assoc assoc-stack substitute assoc-filter delete-at assoc-find enum-seq keys 
+syn keyword factorKeyword assoc? assoc-clone-like delete-any assoc= delete-at* new-assoc subassoc? assoc-size map>assoc search-alist assoc-like key? assoc-intersect update assoc-union at* assoc-empty? at+ set-enum-seq set-at assoc-all? assoc-hashcode change-at assoc-each assoc-diff zip values value-at rename-at (assoc-stack) enum? at cache assoc>map assoc-any? <enum> assoc assoc-map assoc-pusher (assoc>map) enum assoc-push-if remove-all >alist (substitute) substitute-here clear-assoc assoc-stack substitute assoc-filter delete-at assoc-find enum-seq keys 
 syn keyword factorKeyword case dispatch-case-quot with-datastack <buckets> no-cond no-case? 3cleave>quot (distribute-buckets) contiguous-range? 2cleave cond>quot no-cond? cleave>quot no-case recursive-hashcode case>quot 3cleave alist>quot dispatch-case hash-case-table hash-case-quot case-find cond cleave distribute-buckets 2cleave>quot linear-case-quot spread spread>quot hash-dispatch-quot 
 syn keyword factorKeyword byte-array>bignum sgn >bignum number= each-integer next-power-of-2 ?1+ imaginary-part mod recip float>bits rational >float number? 2^ bignum? integer fixnum? neg fixnum sq bignum (all-integers?) times denominator find-last-integer (each-integer) bit? * + power-of-2? - / >= bitand find-integer complex < real > log2 integer? number bits>double double>bits bitor 2/ zero? rem all-integers? (find-integer) real-part align bits>float float? shift float 1+ 1- fp-nan? ratio? bitxor even? ratio <= /mod >integer odd? rational? bitnot real? >fixnum complex? (next-power-of-2) /i numerator /f 
-syn keyword factorKeyword slice-to append left-trim find-last-from clone-like 3sequence map-as last-index-from reversed index-from pad-left cut* nth sequence slice? <slice> tail-slice empty? tail* find-from member? virtual-sequence? unclip set-length drop-prefix bounds-error? set-slice-seq map start open-slice midpoint@ set-immutable-seq move-forward rest-slice prepend fourth delete set-slice-to new-sequence follow all-eq? monotonic? set-reversed-seq like delete-nth first4 repetition-len (open-slice) reverse slice padding virtual@ repetition? index 4sequence max-length set-second first2 first3 (3append) supremum unclip-slice move-backward tail 3append sequence-hashcode-step right-trim reversed-seq pad-right suffix concat set-slice-from flip filter sum immutable? 2sequence delete-all start* immutable-sequence? (append) check-slice sequence? head set-slice-error-reason reduce set-bounds-error-index reverse-here sequence= halves collapse-slice interleave 2map binary-reduce virtual-seq slice-error? product bounds-check? bounds-check immutable find remove ((append)) set-fourth peek contains? reversed? shorter? push-new find-last head-slice pop* immutable-seq tail-slice* accumulate each pusher all-equal? new-resizable cut-slice head-slice* 2reverse-each pop memq? set-nth ?nth <flat-slice> second change-each join set-repetition-len <reversed> all? virtual-sequence set-repetition-elt subseq? immutable-sequence slice-error-reason new-like length last-index push-if 2all? lengthen joined-length copy set-bounds-error-seq cache-nth move third first slice-from repetition-elt tail? set-first prefix bounds-error bounds-error-seq bounds-error-index <repetition> unfold exchange slice-seq cut 2reduce change-nth min-length set-third (delete) push-all head? delete-slice rest sum-lengths 2each head* infimum sequence-hashcode slice-error subseq replace-slice repetition push trim mismatch 
+syn keyword factorKeyword slice-to append left-trim find-last-from clone-like 3sequence map-as last-index-from reversed index-from pad-left cut* nth sequence slice? <slice> tail-slice empty? tail* find-from member? virtual-sequence? unclip set-length drop-prefix bounds-error? set-slice-seq map start open-slice midpoint@ set-immutable-seq move-forward rest-slice prepend fourth delete set-slice-to new-sequence follow all-eq? monotonic? set-reversed-seq like delete-nth first4 repetition-len (open-slice) reverse slice padding virtual@ repetition? index 4sequence max-length set-second first2 first3 (3append) supremum unclip-slice move-backward tail 3append sequence-hashcode-step right-trim reversed-seq pad-right suffix concat set-slice-from flip filter sum immutable? 2sequence delete-all start* immutable-sequence? (append) check-slice sequence? head set-slice-error-reason reduce set-bounds-error-index reverse-here sequence= halves collapse-slice interleave 2map binary-reduce virtual-seq slice-error? product bounds-check? bounds-check immutable find remove ((append)) set-fourth peek any? reversed? shorter? push-new find-last head-slice pop* immutable-seq tail-slice* accumulate each pusher all-equal? new-resizable cut-slice head-slice* 2reverse-each pop memq? set-nth ?nth <flat-slice> second change-each join set-repetition-len <reversed> all? virtual-sequence set-repetition-elt subseq? immutable-sequence slice-error-reason new-like length last-index push-if 2all? lengthen joined-length copy set-bounds-error-seq cache-nth move third first slice-from repetition-elt tail? set-first prefix bounds-error bounds-error-seq bounds-error-index <repetition> unfold exchange slice-seq cut 2reduce change-nth min-length set-third (delete) push-all head? delete-slice rest sum-lengths 2each head* infimum sequence-hashcode slice-error subseq replace-slice repetition push trim mismatch 
 syn keyword factorKeyword global +@ set-namestack with-variable on set bind dec namestack get get-global change init-namespaces with-scope off set-global namespace % make , inc counter building make-assoc 
 syn keyword factorKeyword <array> 3array >array 4array pair? array pair 2array 1array resize-array array? 
 syn keyword factorKeyword readln stream-read-until stream-read-partial stderr with-stream read with-stream* print contents make-span-stream write1 stream-write1 stream-format make-block-stream stream-copy with-cell stream-write format with-row stream-print stream-read with-nesting (stream-copy) bl write-object nl stream-nl write stdio flush read-until tabular-output make-cell-stream write-cell stream-flush read1 lines stream-read1 stream-write-table with-style stream-readln