tupelo.tagval

Tupelo - Making Clojure even sweeter

new

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

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

tag

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

Returns the keyword tag of a TagVal

tagval?

(tagval? arg)
Inputs: [arg :- s/Any]
Returns: s/Bool

Returns true if arg is a TagVal 

untagged

(untagged arg)
Inputs: [arg :- s/Any]
Returns: s/Any

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

val

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

Returns value of a TagVal