erp12.fijit.tuple

Utilities for creating and unpacking instances of scala’s Tuple* classes.

product->vec

(product->vec tup)

Converts a Scala Product type (for example, any instance of any Tuple class) to a Clojure vector.

scala-tuple

(scala-tuple a)(scala-tuple a b)(scala-tuple a b c)(scala-tuple a b c d)(scala-tuple a b c d e)(scala-tuple a b c d e f)(scala-tuple a b c d e f g)(scala-tuple a b c d e f g h)(scala-tuple a b c d e f g h i)(scala-tuple a b c d e f g h i j)(scala-tuple a b c d e f g h i j k)(scala-tuple a b c d e f g h i j k l)(scala-tuple a b c d e f g h i j k l m)(scala-tuple a b c d e f g h i j k l m n)(scala-tuple a b c d e f g h i j k l m n o)(scala-tuple a b c d e f g h i j k l m n o p)(scala-tuple a b c d e f g h i j k l m n o p q)(scala-tuple a b c d e f g h i j k l m n o p q r)(scala-tuple a b c d e f g h i j k l m n o p q r s)(scala-tuple a b c d e f g h i j k l m n o p q r s t)(scala-tuple a b c d e f g h i j k l m n o p q r s t & [u v :as args])

Creates a Scala Tuple from the elements.

Scala uses a different Tuple class depending on the number of elements and thus the type of the returned value will different depending on the number of arguments.

to-tuple

(to-tuple coll)

Converts the collection to a scala Tuple.

Scala uses a different Tuple class depending on the number of elements and thus the type of the returned value will different depending on the size of the collection.