Skip to content

clhodapp/tuplicity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Macro-based Tuples on top of Arrays

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages