Commonly used utilities for interop with Scala objects.
Commonly used utilities for interop with Scala objects.
(first t)
Get the first element of a Scala pair.
Get the first element of a Scala pair.
(from-pair pair)
Coerce a Scala pair (Tuple2
) value to a Clojure value. Returns map entry
values for efficiency. Recursively walks the structure to ensure all nested
values are Clojure-compatible.
Coerce a Scala pair (`Tuple2`) value to a Clojure value. Returns map entry values for efficiency. Recursively walks the structure to ensure all nested values are Clojure-compatible.
(from-tuple t)
Coerce a Scala tuple value to a Clojure vector. Recursively walks the structure to ensure all nested tuples are converted.
Coerce a Scala tuple value to a Clojure vector. Recursively walks the structure to ensure all nested tuples are converted.
(resolve-option o)
Resolve an optional type to some value or nil.
Resolve an optional type to some value or nil.
(second t)
Get the second element of a Scala pair.
Get the second element of a Scala pair.
(to-pair entry)
Coerce a Clojure value to a Scala pair (Tuple2
).
Coerce a Clojure value to a Scala pair (`Tuple2`).
(tuple a)
(tuple a b)
(tuple a b c)
(tuple a b c d)
(tuple a b c d e)
(tuple a b c d e f)
(tuple a b c d e f g)
(tuple a b c d e f g h)
(tuple a b c d e f g h i)
Construct a Scala tuple. Supports tuples up to size 9.
Construct a Scala tuple. Supports tuples up to size 9.
(tuple->vec v)
Coerce a Scala tuple to a Clojure vector. Supports tuples up to size 9.
Coerce a Scala tuple to a Clojure vector. Supports tuples up to size 9.
(vec->tuple v)
Coerce a Clojure vector to a Scala tuple. Supports tuples up to size 9.
Coerce a Clojure vector to a Scala tuple. Supports tuples up to size 9.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close