(from & args)
Creates a new Tuple from a variable number of elements. The elements must follow the type guidelines from add, and so can only be Strings, byte[]s, Numbers, UUIDs, Booleans, Lists, Tuples, or nulls.
Performance: Similar to tuple
except assumes that all the elements
are of the same type. If not, then an IllegalArgumentException is
thrown.
Creates a new Tuple from a variable number of elements. The elements must follow the type guidelines from add, and so can only be Strings, byte[]s, Numbers, UUIDs, Booleans, Lists, Tuples, or nulls. Performance: Similar to `tuple` except assumes that all the elements are of the same type. If not, then an IllegalArgumentException is thrown.
(tuple & args)
Creates a new Tuple from a variable number of elements. The elements must follow the type guidelines from add, and so can only be Strings, byte[]s, Numbers, UUIDs, Booleans, Lists, Tuples, or nulls.
Performance: If you know that all the elements will be of the same type,
then from
will be a bit faster.
Creates a new Tuple from a variable number of elements. The elements must follow the type guidelines from add, and so can only be Strings, byte[]s, Numbers, UUIDs, Booleans, Lists, Tuples, or nulls. Performance: If you know that all the elements will be of the same type, then `from` will be a bit faster.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close