Liking cljdoc? Tell your friends :D

sparkplug.scala

Commonly used utilities for interop with Scala objects.

Commonly used utilities for interop with Scala objects.
raw docstring

firstclj

(first t)

Get the first element of a Scala pair.

Get the first element of a Scala pair.
sourceraw docstring

from-pairclj

(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.
sourceraw docstring

from-tupleclj

(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.
sourceraw docstring

resolve-optionclj

(resolve-option o)

Resolve an optional type to some value or nil.

Resolve an optional type to some value or nil.
sourceraw docstring

secondclj

(second t)

Get the second element of a Scala pair.

Get the second element of a Scala pair.
sourceraw docstring

to-pairclj

(to-pair entry)

Coerce a Clojure value to a Scala pair (Tuple2).

Coerce a Clojure value to a Scala pair (`Tuple2`).
sourceraw docstring

tupleclj

(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.
sourceraw docstring

tuple->vecclj

(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.
sourceraw docstring

vec->tupleclj

(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.
sourceraw docstring

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

× close