append
concatenate
drop
flatMap
fold
fold
object size extends Poly1 { implicit def caseInt = at[Int](x => 1) implicit def caseString = at[String](_.length) implicit def caseTuple[T, U] (implicit st : Case.Aux[T, Int], su : Case.Aux[U, Int]) = at[(T, U)](t => size(t._1)+size(t._2)) } object addSize extends Poly2 { implicit def default[T](implicit st: size.Case.Aux[T, Int]) = at[Int, T]{ (acc, t) => acc+size(t) } }
import syntax.std.tuple._
head
map
map
import poly._ object option extends (Id ~> Option) { def apply[T](t: T) = Option(t) }
prepend
split
tail
take
conversion to HList
conversion to List
zipper
The parameterless execute method has been deprecated and will be removed in a future version of ScalaTest. Please invoke execute with empty parens instead: execute().
The trap method is no longer needed for demos in the REPL, which now abreviates stack traces, and will be removed in a future version of ScalaTest
HList-style operations on standard Scala tuples
shapeless allows standard Scala tuples to be manipulated in exactly the same ways as
HList
s