given_Applicative_Vector

Value members

Concrete methods

def liftA2[A, B, C](f: A => B => C): Vector[A] => Vector[B] => Vector[C]
def pure[A](a: A): Vector[A]

Extensions

Inherited extensions

extension (fa: F[A])
@targetName("productRight")
def *>[A, B](fb: F[B]): Vector[B]

Sequence actions, discarding the value of the first argument.

Sequence actions, discarding the value of the first argument.

Example
Option(1) *> Option(2) <* Option(3) == Option(2)
Inherited from
Applicative
@targetName("productLeft")
def <*[A, B](fb: F[B]): Vector[A]

Sequence actions, discarding the value of the second argument.

Sequence actions, discarding the value of the second argument.

Example
Option(1) *> Option(2) <* Option(3) == Option(2)
Inherited from
Applicative
@targetName("apFlipped")
def <**>[A, B](fab: F[A => B]): Vector[B]

Flipped version of this.ap

Flipped version of this.ap

Inherited from
Applicative
inline def unless[A, B](cond: Boolean): Vector[Unit]

Conditional execution of 'Applicative' expressions.

Conditional execution of 'Applicative' expressions.

Example
 doSomething.unless(condFailed) 
Inherited from
Applicative
inline def when[A, B](cond: Boolean): Vector[Unit]

Conditional execution of 'Applicative' expressions.

Conditional execution of 'Applicative' expressions.

Example
 doSomething.when(cond) 
Inherited from
Applicative
extension (fab: F[A => B])
@targetName("ap")
def <*>[A, B](fa: F[A]): Vector[B]

Sequential application.

Sequential application.

Example
val f = (x: Int) => (y: Int) => x + y
f `<$>` Option(1) <*> Option(2) == Option(3)
Inherited from
Applicative