o

play.api.libs

Collections

object Collections

Utilities functions for Collections

Source
Collections.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Collections
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Deprecated Value Members

  1. def unfoldLeft[A, B](seed: B)(f: (B) => Option[(B, A)]): Seq[A]

    Produces a Seq from a seed and a function.

    Produces a Seq from a seed and a function.

    Example, produces a List from 100 to 0.

    unfoldLeft(0) {
      case a if a > 100 => None
      case a => Some((a + 1, a))
    }
    A

    Type of the final List elements.

    B

    Seed type

    seed

    Initial value.

    f

    Function producing the List elements.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) use Seq.unfold