c

Custom.Tuple._library3

final class _library3[A, B, C] extends AnyVal

Tuple3 Library

Ordering
  1. Alphabetic
Inherited
  1. Tuple._library3
  2. scala.AnyVal
  3. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Method

  1. def apply(f: (A, B, C) ⇒ Any): (A, B, C)

    Process by function

    Process by function

    Processes tuple elements in functional manner

    Returns original tuple

    (2, 4, 6) apply (_ + _ + _ lp)                                  // Prints: 12
    
    (4, 4, 6)((first, second, third) => first + second + third lp)  // Prints: 14
    Definition Classes
    _library3
  2. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  3. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  4. def map1[T](f: (A) ⇒ T): (T, B, C)

    Map first

    Map first

    Creates new tuple with first element mapped

    (1, 2, 3).map1(_ * 10).lp   // Prints: (10,2,3)
    Definition Classes
    _library3
  5. def map2[T](f: (B) ⇒ T): (A, T, C)

    Map second

    Map second

    Creates new tuple with second element mapped

    (1, 2, 3).map2(_ * 10).lp   // Prints: (1,20,3)
    Definition Classes
    _library3
  6. def map3[T](f: (C) ⇒ T): (A, B, T)

    Map third

    Map third

    Creates new tuple with third element mapped

    (1, 2, 3).map3(_ * 10).lp   // Prints: (1,2,30)
    Definition Classes
    _library3
  7. def to[T](f: (A, B, C) ⇒ T): T

    Convert by function

    Convert by function

    Converts tuple elements in functional manner

    (2, 4, 6).to(_ + _ + _).lp                                        // Prints: 12
    
    (4, 4, 6).to((first, second, third) => first + second + third).lp // Prints: 14
    Definition Classes
    _library3
  8. def toString(): String
    Definition Classes
    Any

Operator

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
Linear Supertypes
AnyVal, Any
Source: _library3.scala