Liking cljdoc? Tell your friends :D

tupelo.tagval

Tupelo - Making Clojure even sweeter

Tupelo - Making Clojure even sweeter
raw docstring

map-valclj/s

(map-val tx-fn tv)

Inputs: [tx-fn :- tsk/Fn tv :- tsk/TagVal] Returns: tsk/TagVal

Given a TagVal, applies tx-fn to the value

Inputs: [tx-fn :- tsk/Fn tv :- tsk/TagVal]
Returns: tsk/TagVal

Given a TagVal, applies tx-fn to the value 
sourceraw docstring

mapvclj/s

(mapv tx-fn tagvals)

Inputs: [tx-fn :- tsk/Fn tagvals :- [tsk/TagVal]] Returns: [tsk/TagVal]

Given a sequence of TagVals, applys tx-fn to the value in each TagVal, returning a vector of TagVals.

Inputs: [tx-fn :- tsk/Fn tagvals :- [tsk/TagVal]]
Returns: [tsk/TagVal]

Given a sequence of TagVals, applys tx-fn to the value in each TagVal,
returning a vector of TagVals. 
sourceraw docstring

newclj/s

(new tag value)

Inputs: [tag :- s/Keyword value :- s/Any] Returns: tsk/TagVal

Constructs a new TagVal as the literal {tag value}

Inputs: [tag :- s/Keyword value :- s/Any]
Returns: tsk/TagVal

Constructs a new TagVal as the literal `{tag value}` 
sourceraw docstring

tagclj/s

(tag arg)

Inputs: [arg :- tsk/TagVal] Returns: s/Keyword

Returns the keyword tag of a TagVal

Inputs: [arg :- tsk/TagVal]
Returns: s/Keyword

Returns the keyword tag of a TagVal
sourceraw docstring

tagval?clj/s

(tagval? arg)

Inputs: [arg :- s/Any] Returns: s/Bool

Returns true if arg is a TagVal: a keyword map with 1 entry.

Inputs: [arg :- s/Any]
Returns: s/Bool

Returns true if arg is a TagVal: a keyword map with 1 entry.
sourceraw docstring

untaggedclj/s

(untagged arg)

Inputs: [arg :- s/Any] Returns: s/Any

If given a TagVal, returns the value; else noop.

Inputs: [arg :- s/Any]
Returns: s/Any

If given a TagVal, returns the value; else noop.
sourceraw docstring

valclj/s

(val arg)

Inputs: [arg :- tsk/TagVal] Returns: s/Any

Returns value of a TagVal

Inputs: [arg :- tsk/TagVal]
Returns: s/Any

Returns value of a TagVal
sourceraw docstring

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

× close