Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 449 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 449 Bytes

A macro-based unified Tuple class.

Encodes Tuples as Arrays

Build with SBT

What Works:

  • Tuple Creation
  • Getting Tuple Members
  • Stringification
  • (Structural) Equality

What Doesn't Work (exist):

  • Pattern Matching
  • Conversion to TupleN
  • Copy Method

Example:

import tuplicity.{Tuple=>T, _}

val tup = T(1,2,3, "a")

println(tup._2) // prints 2

val x: String = tup._4

For further examples see src/test/scala/TupleSuite.scala