Class/Object

dogs

Nel

Related Docs: object Nel | package dogs

Permalink

final case class Nel[A](head: A, _tail: List[A]) extends List[A] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, List[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Nel
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. List
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Nel(head: A, _tail: List[A])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(as: List[A]): List[A]

    Permalink

    Append a list to this list.

    Append a list to this list. O(n) on the size of this list

    Definition Classes
    List
  4. final def ::(a: A): Nel[A]

    Permalink

    Prepend the given value to this List O(1)

    Prepend the given value to this List O(1)

    Definition Classes
    List
  5. final def :::(as: Nel[A]): Nel[A]

    Permalink
  6. final def :::(as: List[A]): Nel[A]

    Permalink

    Append a list to this list.

    Append a list to this list. O(n) on the size of this list

    Definition Classes
    NelList
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def coflatMap[B](f: (Nel[A]) ⇒ B): Nel[B]

    Permalink
  11. def coflatMap[B](f: (List[A]) ⇒ B): List[B]

    Permalink

    Apply a function extracting a B from every sublist, accumuating all the Bs into a List O(n)

    Apply a function extracting a B from every sublist, accumuating all the Bs into a List O(n)

    Definition Classes
    List
  12. final def contains(a: A)(implicit ev: Eq[A]): Boolean

    Permalink

    Returns true if the given value is present in the List.

    Returns true if the given value is present in the List. O(n)

    Definition Classes
    List
  13. final def drop(num: Int): List[A]

    Permalink

    Returns a List containing the first n elements of this List, if n * < the length of this list, the result will be a copy of this list.

    Returns a List containing the first n elements of this List, if n * < the length of this list, the result will be a copy of this list. O(num)

    Definition Classes
    List
    Annotations
    @tailrec()
  14. final def dropWhile(pred: (A) ⇒ Boolean): List[A]

    Permalink

    Returns the list with the longest prefix of As matching the given predicate removed.

    Returns the list with the longest prefix of As matching the given predicate removed.

    Definition Classes
    List
    Annotations
    @tailrec()
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def exists(pred: (A) ⇒ Boolean): Boolean

    Permalink

    Returns true of any element in the List matches the given predicate.

    Returns true of any element in the List matches the given predicate. O(n)

    Definition Classes
    List
  17. final def filter(pred: (A) ⇒ Boolean): List[A]

    Permalink

    Construct a new List containing only elements of this List which pass the given predicate O(n)

    Construct a new List containing only elements of this List which pass the given predicate O(n)

    Definition Classes
    List
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def find(pred: (A) ⇒ Boolean): Option[A]

    Permalink

    Return the first element in the List matching the given predicate, if one is found at all.

    Return the first element in the List matching the given predicate, if one is found at all. O(n)

    Definition Classes
    List
    Annotations
    @tailrec()
  20. final def flatMap[B](f: (A) ⇒ List[B]): List[B]

    Permalink

    Apply a function returning a List to each element of this List, return a List which is the concatenation of all the resulting Lists.

    Apply a function returning a List to each element of this List, return a List which is the concatenation of all the resulting Lists. O(n)

    Definition Classes
    List
  21. final def foldLeft[B](b: B)(f: (B, A) ⇒ B): B

    Permalink

    A left-associated fold of the List, which accumuates a B value by passing each element of the List to the given accumulating function.

    A left-associated fold of the List, which accumuates a B value by passing each element of the List to the given accumulating function. O(n)

    Definition Classes
    List
    Annotations
    @tailrec()
  22. final def foldRight[B](b: Eval[B])(f: (A, Eval[B]) ⇒ Eval[B]): Eval[B]

    Permalink

    A right-associative fold on the list which evaluates the tail of the list lazily, allowing this computation to terminate before evailuating all of the elements on the list O(n)

    A right-associative fold on the list which evaluates the tail of the list lazily, allowing this computation to terminate before evailuating all of the elements on the list O(n)

    Definition Classes
    List
  23. final def forall(p: (A) ⇒ Boolean): Boolean

    Permalink

    Returns true of all elements in the List match the given predicate.

    Returns true of all elements in the List match the given predicate. O(n)

    Definition Classes
    List
  24. def foreach(f: (A) ⇒ Unit): Unit

    Permalink

    Execute the side-effecting function on each memeber of the list, in order

    Execute the side-effecting function on each memeber of the list, in order

    Definition Classes
    List
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. val head: A

    Permalink
  27. final def headOption: Option[A]

    Permalink

    Return the head of the list, if one exists

    Return the head of the list, if one exists

    Definition Classes
    List
  28. final def isEmpty: Boolean

    Permalink
    Definition Classes
    NelList
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. final def map[B](f: (A) ⇒ B): Nel[B]

    Permalink

    Apply a function to each element of this list, producing a new list with the results.

    Apply a function to each element of this list, producing a new list with the results. O(n)

    Definition Classes
    NelList
  31. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def reduceLeft(f: (A, A) ⇒ A): A

    Permalink
  35. final def reverse: Nel[A]

    Permalink

    Return a List which contains all of the same elements as this List, but in the opposite order O(n)

    Return a List which contains all of the same elements as this List, but in the opposite order O(n)

    Definition Classes
    NelList
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def tail: List[A]

    Permalink
  38. final def tailOption: Option[List[A]]

    Permalink

    Return the tail of the list, if one exists

    Return the tail of the list, if one exists

    Definition Classes
    List
  39. final def tails: Streaming[List[A]]

    Permalink

    Returns a stream of Lists.

    Returns a stream of Lists. the first list is this, and the rest of the stream are the lists generated by subsequently calilng tailOption as long as the list is non-empty.

    Definition Classes
    List
  40. final def take(n: Int): List[A]

    Permalink

    Returns a List containing the first n elements of this List, if n < the length of this list, the result will be a copy of this list.

    Returns a List containing the first n elements of this List, if n < the length of this list, the result will be a copy of this list. O(num)

    Definition Classes
    NelList
  41. final def takeWhile(pred: (A) ⇒ Boolean): List[A]

    Permalink

    Returns the longest prefix of elements which match the given predicate.

    Returns the longest prefix of elements which match the given predicate.

    Definition Classes
    List
  42. final def toNel: Option[Nel[A]]

    Permalink
    Definition Classes
    List
  43. def toScalaList: scala.List[A]

    Permalink
    Definition Classes
    List
  44. def toString(): String

    Permalink
    Definition Classes
    List → AnyRef → Any
  45. final def unzip[B, C](implicit unz: =:=[(B, C), A]): (List[B], List[C])

    Permalink

    If there is proof that this is a list of (B,C) return a tuple of the lists with the elements separated

    If there is proof that this is a list of (B,C) return a tuple of the lists with the elements separated

    Definition Classes
    List
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def zip[B](bs: List[B]): List[(A, B)]

    Permalink

    Returns a list of (A,B) pairs.

    Returns a list of (A,B) pairs. If one list is longer than the other, the reminaing elements are ignored

    Definition Classes
    List
  50. final def zipWithIndex: List[(A, Int)]

    Permalink

    Returns a list of (A,Int) where each A is paired with its zero-based index in the list

    Returns a list of (A,Int) where each A is paired with its zero-based index in the list

    Definition Classes
    List

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from List[A]

Inherited from AnyRef

Inherited from Any

Ungrouped