Liking cljdoc? Tell your friends :D

fif.utils.token

Includes functions for manipulating tokens/symbols.

Includes functions for manipulating tokens/symbols.
raw docstring

between-tokensclj/s

(between-tokens coll start end)

Returns a collection which is the first subset of the provided collection between the start token and end token.

Returns a collection which is the first subset of the provided
collection between the `start` token and `end` token.
sourceraw docstring

push-collclj/s

(push-coll coll tokens)
sourceraw docstring

replace-tokenclj/s

(replace-token coll otoken ntoken)

Replace all instances of the old token otoken with a new token ntoken.

Replace all instances of the old token `otoken` with a new token
`ntoken`.
sourceraw docstring

rest-at-tokenclj/s

(rest-at-token coll token)

Returns the rest of the provided collection, which is not containing the first set of tokens up to and not containing token

Returns the rest of the provided collection, which is not containing
the first set of tokens up to and not containing `token`
sourceraw docstring

split-at-tokenclj/s

(split-at-token coll token)

Returns a vector pair, with the first element being the collection up to the provided token, and the second element being the rest of the collection after the provided token.

Returns a vector pair, with the first element being the collection up
to the provided `token`, and the second element being the rest of
the collection after the provided `token`.
sourceraw docstring

strip-tokenclj/s

(strip-token coll token)

Removes the given token from the start and end of the collection

Removes the given `token` from the start and end of the collection
sourceraw docstring

symbol-ltrim-onceclj/s

(symbol-ltrim-once sym s)

Trim the subsymbol s from the start of sym once.

Trim the subsymbol `s` from the start of `sym` once.
sourceraw docstring

symbol-starts-with?clj/s

(symbol-starts-with? sym s)

Returns true if the given symbol sym starts with the string/symbol s

Returns true if the given symbol `sym` starts with the string/symbol `s`
sourceraw docstring

take-to-tokenclj/s

(take-to-token coll token)

Takes from a collection, up to the first token

Takes from a collection, up to the first `token`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close