case class HCons[H, T <: HList](head: H, tail: T) extends HList with Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- HCons
- Serializable
- Serializable
- Product
- Equals
- HList
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new HCons(head: H, tail: T)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+[A](a: A)(implicit f: Appender[HCons[H, T], HCons[A, HNil], Plus[HCons[A, HNil]]]): HCons[H, T.Plus[HCons[A, HNil]]]
Append an element to this HList
Append an element to this HList
- returns
a new HList
-
def
++[L2 <: HList](l2: L2)(implicit f: Appender[HCons[H, T], L2, Plus[L2]]): HCons[H, T.Plus[L2]]
Append another HList to this HList
Append another HList to this HList
- returns
a new HList
- def ->[B](y: B): (HCons[H, T], B)
-
def
::[A](a: A): HCons[A, HCons[H, T]]
Append element at the beginning of this HList
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[A](index: Int)(implicit arg0: ClassTag[A]): A
Retrieve element at index
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def ensuring(cond: (HCons[H, T]) ⇒ Boolean, msg: ⇒ Any): HCons[H, T]
- def ensuring(cond: (HCons[H, T]) ⇒ Boolean): HCons[H, T]
- def ensuring(cond: Boolean, msg: ⇒ Any): HCons[H, T]
- def ensuring(cond: Boolean): HCons[H, T]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
filter(p: (Any) ⇒ Boolean): HList
Filter this HList with a predicate
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
foldLeft[A](zero: A)(f: (A, Any) ⇒ A): A
Applies a binary operator to a start value and all elements of this HList, going left to right.
Applies a binary operator to a start value and all elements of this HList, going left to right.
- returns
computed result
-
def
foreach(f: (Any) ⇒ Unit): Unit
Executes f for each element of the HList
Executes f for each element of the HList
- Definition Classes
- HList
- def formatted(fmtstr: String): String
-
def
get[A](index: Int)(implicit arg0: ClassTag[A]): Option[A]
Retrieve element at index in an Option
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val head: H
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map(f: (Any) ⇒ Any): HList
Apply f to all elements of this HList
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val tail: T
- def toString: String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def →[B](y: B): (HCons[H, T], B)
Shadowed Implicit Value Members
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from HCons[H, T] to any2stringadd[HCons[H, T]] performed by method any2stringadd in scala.Predef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(hCons: any2stringadd[HCons[H, T]]).+(other)
- Definition Classes
- any2stringadd