Skip to content

Instantly share code, notes, and snippets.

@okomok
Created January 30, 2009 04:09
Show Gist options
  • Save okomok/54934 to your computer and use it in GitHub Desktop.
Save okomok/54934 to your computer and use it in GitHub Desktop.
Triple
package mada.vec
private[mada] object TripleVector {
def apply[A](v: Vector.Triple[A]): Vector[A] = v._1(v._2, v._3)
}
private[mada] object VectorTriple {
def apply[A](v: Vector[A]): Vector.Triple[A] = (v, v.start, v.end)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment