Tupelo - Making Clojure even sweeter
Tupelo - Making Clojure even sweeter
(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
(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.
(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}`
(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
(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.
(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.
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close