| Function: assoc | Top | Globals Index | Next |
|
syntax: assoc <key> <src-block> Return a block! member of <src> if first member matches <key>. Note: None-block members are ignored. |
| Function: before | Top | Globals Index | Back | Next |
|
syntax: before <series> <key> Returns item *before* key in series, if found. |
| Function: blk-compare | Top | Globals Index | Back | Next |
|
syntax: blk-compare <src-block> <dst-block> <int-len> description: Compare <len> items of two blocks |
| Function: blockify | Top | Globals Index | Back | Next |
|
syntax: blockify <obj> builds a block from an object, alternating to-string members and values |
| Function: bond | Top | Globals Index | Back | Next |
|
syntax: bond <block> <any-type-sep> description: Places consecutive members of <sep> between members of <src> and returns rejoined block as a string Note: sep is forced to a block, block elements are rotated. |
| Function: cats | Top | Globals Index | Back | Next |
|
syntax: cats v Description: Safe version of rejoin. If arg not a block, return empty string |
| Function: change-after | Top | Globals Index | Back | Next |
|
syntax: change-after <series> <any-type-key> <any-type-val> description: If key is found in series, replace following value by val. |
| Function: change-at | Top | Globals Index | Back | Next |
|
syntax: change-at <series> <old> <new> description: If <old> is found in series, replace by <new> |
| Function: change-pair | Top | Globals Index | Back | Next |
|
syntax: change-pair <block> <any-type-key> <any-type-val> description: If a member of a block is a block and the first item matches <key>, change second item to <val> if there is a second item. Return: Return true if found and changed, return false if not found Refinement: /str Convert <val> and <key> to string. |
| Function: choose | Top | Globals Index | Back | Next |
|
syntax: choose <src-block> <keys-block> description: Build a block of items selected from <src> by keys in <keys-block> Refinement: /before Add value before successfully selected item Refinement: /after Add value after successfully selected item |
| Function: chop | Top | Globals Index | Back | Next |
|
syntax: chop <series> <optional-num> description: Drop 1 or more members from end of <series> and return head. Refinement:: /with <number> Number of members to drop. Force to absolute number equal to or length than length of series. |
| Function: concat | Top | Globals Index | Back | Next |
|
syntax: concat <block!> <sep> Join members of B with members of sep. |
| Function: ctx | Top | Globals Index | Back | Next |
|
syntax: ctx <block> Description: Build an object consisting of instance variables from one or two blocks. refinement: /word Variable assignments from values of series of words. refinement: /pairs Variable assignments from alternating words or strings and values. refinement: /with <block-of-vals> Vals block contains values. refinement: /init <any-type-val> Assignments are all equal to val. note: Must have one refinement. Refinements are exclusive. |
| Function: ctx-vars | Top | Globals Index | Back | Next |
|
syntax: ctx-vars <object> Returns variables from object. |
| Function: cull | Top | Globals Index | Back | Next |
|
syntax: cull <block-object-src> <any-type-key> description: Returns target with key/value pairs removed. arg: (src) - must be of even length. arg: (key) - one or more keys to match. key(s)must be words. |
| Function: deselect | Top | Globals Index | Back | Next |
|
syntax: deselect <original-block> <replacement-block> <any-type-key> description: If <key> is found in <original>, return member of <replacement-block> with same index as position found for <key>. |
| Function: diverge | Top | Globals Index | Back | Next |
|
syntax: diverge <block> <int-parts> description: Partition block into evenly sized inner blocks in alternating sequence note: length of block must be aligned on parts example: diverge [1 2 3 4 5 6 7 8 9 10 11 12] 3 => [[1 4 7 10] [2 5 8 11] [3 6 9 12]] |
| Function: expand | Top | Globals Index | Back | Next |
|
syntax: expand <block> Reduce and form items in a block example: a: 1 b: 2 c: 3 expand [a b c] => ["a" 1 "b" 2 "c" 3] |
| Function: extract | Top | Globals Index | Back | Next |
|
syntax: extract <block> <int-width> Extracts a value from a series at regular intervals. refinement: /index <int-logic-pos> - Extract from an offset position refinement: /upto <stopval> Extract up to a certain value, stop if found, don't include refinement: /only <culls> Ignore culls |
| Function: find-in-block | Top | Globals Index | Back | Next |
|
syntax: find-in-block <block> <val> Find an embedded match for val in block return: index of position matched or none |
| Function: find-string | Top | Globals Index | Back | Next |
|
syntax: find-string Tests for EXACT match of item in series S. Return: True if exact match, False if no match, item if non-strict match |
| Function: first-data | Top | Globals Index | Back | Next |
|
syntax: first-data <block> Return first item in B that has valid data. note: Strings with only whitespace are ignored |
| Function: fix | Top | Globals Index | Back | Next |
|
syntax: fix <obj> <wrd> <any-type-val> description: Set <wrd> in <obj> to <val>. If <wrd> nonexistant, add <wrd> and <val> |
| Function: flatten | Top | Globals Index | Back | Next |
|
syntax: flatten <block> converts a nested block to simple block. Goes one level deep |
| Function: fold | Top | Globals Index | Back | Next |
|
syntax: fold <block> <int-nested-block-length> description: Fold a series in a block! of block! values. example: fold [1 2 3 4 5 6 7] 2 => [[1 2] [3 4] [5 6] [7]] |
| Function: from | Top | Globals Index | Back | Next |
|
syntax: from <obj> <key-wrd> Retrieve member of an object. If not found, return none |
| Function: fuse | Top | Globals Index | Back | Next |
|
syntax: fuse <block> <any-type-sep> description: Returns the concatenation of block elements. One or two seperators. args: block, sep - One value or block of two Refinements: /full reduce the block first |
| Function: get-attributes | Top | Globals Index | Back | Next |
|
syntax: get-attributes <object> Builds a block of strings from object members. |
| Function: get-obj-names | Top | Globals Index | Back | Next |
|
syntax: get-obj-names <object> Builds a block of words from object members. |
| Function: getpos | Top | Globals Index | Back | Next |
|
syntax: getpos <series> <target-any-type> Return index of target refinement: /part Use to find match imbedded in member of arg |
| Function: incr | Top | Globals Index | Back | Next |
|
syntax: incr <val/:path> increment a value in a block example: t: [11 12] incr t/2 => [11 13] |
| Function: ins | Top | Globals Index | Back | Next |
|
syntax: ins <series-port-bitset> <val any-type> <int-pos-where> description: Shorthand for insert Refinement: /b Appends a block value as a block |
| Function: joins | Top | Globals Index | Back | Next |
|
syntax: joins <block> <str-sep> description: Returns the concatenation of unreduced block elements, seperated by sep. |
| Function: lop | Top | Globals Index | Back | Next |
|
syntax: lop <block-string> Remove and return value from end of block Refinement: /part <int-pos> remove at pos |
| Function: make-al | Top | Globals Index | Back | Next |
|
syntax: make-al <str> Builds an associative list from a delimited string. Default: seperator is TAB refinement: /with <sep> custom separator refinement: /default <val> custom default value, if parsed to uneven length. |
| Function: make-unique | Top | Globals Index | Back | Next |
|
syntax: make-unique <block-of-strings> description: make redundant strings in a block unique by appending numbers. |
| Function: match | Top | Globals Index | Back | Next |
|
syntax: match <block> <key> Returns all series members of a block that match a key. refinement: /some find key in value. |
| Function: match-in-block | Top | Globals Index | Back | Next |
|
syntax: match-in-block <block-of-vals> <target> description: Find an embedded match for any val in target. return: index of first match |
| Function: matches | Top | Globals Index | Back | Next |
|
syntax: matches <block> <key> description: Returns a block of all items in a block preceded by key, or none |
| Function: mate | Top | Globals Index | Back | Next |
|
syntax: mate <series> <key> description: Returns the value follow the first odd-number match example: mate [2 1 1 "one" ] 1 -> "one" ;; not 1 |
| Function: merge | Top | Globals Index | Back | Next |
|
syntax: merge <block1> <block2> description: Returns the combination of two blocks, alternating original values Refinements: /short Process up to the length of the shortest /even Blocks must of of equal length. Error-trapped. /rot If b2 is shorter, restart at beginning until b1 is finished /B Add blocks as blocks |
| Function: missing | Top | Globals Index | Back | Next |
|
syntax: missing <b1-block> <b2-block> Return: members in b1 not found in b2 |
| Function: obj2assoc | Top | Globals Index | Back | Next |
|
syntax: obj2assoc <object> Builds an associative block from object example: obj2assoc context[a: 1 b: 2] => [a 1 b 2] |
| Function: occurrences | Top | Globals Index | Back | Next |
|
syntax: occurrences <block> Finds occurrences of items in a block. return: block of alternating items and numbers of occurrences |
| Function: occurs | Top | Globals Index | Back | Next |
|
syntax: occurs <series> <val> Returns the number occurrences of val in series |
| Function: parse-list | Top | Globals Index | Back | Next |
|
syntax: parse-list <str> Probably deprecated. |
| Function: part | Top | Globals Index | Back | Next |
|
syntax: part <series> Return subset of series refinement: /first <int-N> Start from beginning, taking N items refinement: /last <int-E> Start at distance E from end, taking all items to end refinement: /mid <int-B> <int-E> Start at B, taking N members note: one of above refinements are needed |
| Function: partition | Top | Globals Index | Back | Next |
|
syntax: partition <block> <int-parts> description: Partition block into evenly sized inner blocks in contiguous sequence note: length of block must be aligned on parts example: partition [1 2 3 4 5 6 7 8 9 10 11 12] 3 => [[1 2 3 4] [5 6 7 8] [9 10 11 12]] |
| Function: pop | Top | Globals Index | Back | Next |
|
syntax: pop <series> Returns and removes the first value in a series syntax: pop <series> <int-number-popped> Builds a new block by N Pops. |
| Function: pop | Top | Globals Index | Back | Next |
|
syntax: pop <series> Returns and removes the first value in a series syntax: pop <series> <int-number-popped> Builds a new block by N Pops. |
| Function: pull | Top | Globals Index | Back | Next |
|
syntax: pull <series-target> <any-type-val> description: Returns target with val(s) removed |
| Function: push | Top | Globals Index | Back | Next |
|
syntax: push <series> <any-type> description: Inserts a value into a series and returns the series head. Refinement: /b Push block as a block. |
| Function: put | Top | Globals Index | Back | Next |
|
syntax: put <object-or-block> <pairs-block> description: Returns <object> with keys and values in <pairs> set as members. Note: Existing members are overwritten. refinement: /only Throw error to prevent changing a value for an existing key. |
| Function: putval | Top | Globals Index | Back | Next |
|
syntax: putval <key> <val> <src-block> description: Set a block! member of <src> if first member matches <key>. note: None-block members are ignored. If not found, new block added. |
| Function: que | Top | Globals Index | Back | Next |
|
syntax: que <series-port-bitset> <val-any-type> description: add a value to end of a series. Shorthand append. Refinement: /b Appends a block value as a block |
| Function: quote | Top | Globals Index | Back | Next |
|
syntax: quote <word-or-block> converts a block of words to a block of strings |
| Function: quotes | Top | Globals Index | Back | Next |
|
syntax: quotes <block> description: converts a block of words to a string with words delimited by commas args: block of words to convert, but not evaluate |
| Function: reduce-even | Top | Globals Index | Back | Next |
|
syntax: reduce-even <block> Reduce alternate (odd-indexed) values. refinement: /deep Reduce nested blocks |
| Function: redundancies | Top | Globals Index | Back | Next |
|
syntax: redundancies <block> Finds duplicated items in a block. Returns: block of alternating items and occurrences |
| Function: relocate | Top | Globals Index | Back | Next |
|
syntax: relocate <series> <key> <position> description: Remove <key> from <block> and re-insert at <position> |
| Function: reselect | Top | Globals Index | Back | Next |
|
syntax: reselect <block> <any-type-val> <any-type-val> description: Change the value in b selected by key to newval |
| Function: ROL | Top | Globals Index | Back | Next |
|
syntax: ROL <series> <int-amount> Rotate Left by amount places example: ROL [1 2 3 4 5 6] 3 => [4 5 6 1 2 3] |
| Function: ROR | Top | Globals Index | Back | Next |
|
syntax: ROR <series> <int-amount> Rotate right by amount places example: ROR [1 2 3 4 5 6] 4 => [3 4 5 6 1 2] |
| Function: select-in | Top | Globals Index | Back | Next |
|
syntax: select-in <block> <key> Select value from nested block |
| Function: select-with | Top | Globals Index | Back | Next |
|
syntax: select-with <block> <key> Select block from nested block |
| Function: set-words | Top | Globals Index | Back | Next |
|
syntax: set-words <block> Get all set-words from a block. Used by cfor |
| Function: setPair | Top | Globals Index | Back | Next |
|
syntax: setPair <block> <any-key> <any-val> Set or change a pair in a block |
| Function: SHL | Top | Globals Index | Back | Next |
|
syntax: SHL <series> Rotate series left by 1 place. |
| Function: SHR | Top | Globals Index | Back | Next |
|
syntax: SHR <series> Rotate series right by 1 place. |
| Function: slice | Top | Globals Index | Back | Next |
|
syntax: slice <series> <int-skipped> <int-len> arg: <int-skipped> Distance to skip arg: <int-len> Amount to copy |
| Function: subset? | Top | Globals Index | Back | Next |
|
syntax: subset? <a> <b> Returns true if A is a subset of B, false if not |
| Function: swaps | Top | Globals Index | Back | Next |
|
syntax: swaps <block> description: Swaps pairs in block. Block must be of even length. example: swaps[2 1 4 3 6 5] => [1 2 3 4 5 6] |
| Function: tabify | Top | Globals Index | Back | Next |
|
syntax: tabify <block> description: creates a string from a block of values, delimits individual members by a TAB refinement: /end <value> add a default value at end |
| Function: textify | Top | Globals Index | Back | Next |
|
syntax: textify <object> Builds a block from an object. Member names become strings example: textify context[a: 1 b: 2] => ["a" 1 "b" 2] |
| Function: tie | Top | Globals Index | Back | Next |
|
syntax: tie <word-or-block-val> <str-or-block-connectors> description: convert block of words to name/value pairs with alternating connectors values are wrapped with double quotes. example: a: 4 b: 5 tie[a b] "=&" => {a="4"&b="5"} refinement: /esc - escape values |
| Function: unselect | Top | Globals Index | Back | Next |
|
syntax: unselect <block> <any-type-key> description: If <key> is found in <blk>, remove key and following value. |
| Function: urlcat | Top | Globals Index | Back |
|
syntax: urlcat <block> builds a url from components. (No http://) |