FunctorUsage

object FunctorUsage extends App

A Functor is a ubiquitous typeclass involving type constructors of kind * -> *, which is another way of saying types that have a single type variable. Examples might be Option, List, Future.

The Functor category involves a single operation, named map:

def map[A, B](fa: F[A])(f: A => B): F[B]

This method takes a Function from A => B and turns an F[A] into an F[B]

trait App
trait DelayedInit
class Object
trait Matchable
class Any

Value members

Concrete methods

def del(f: String => Boolean): Task[Int]

Inherited methods

final protected
def args: Array[String]
Inherited from
App
final
def main(args: Array[String]): Unit
Inherited from
App

Deprecated and Inherited methods

@deprecated(message = "the delayedInit mechanism will disappear", since = "2.11.0")
override
def delayedInit(body: => Unit): Unit
Deprecated
[Since version 2.11.0] the delayedInit mechanism will disappear
Definition Classes
App -> DelayedInit
Inherited from
App

Concrete fields

var database: Map[String, Int]
val delTask: Task[Int]
val len: String => Int
val lenOption: Option[String] => Option[Int]
val listOpt: Functor[[α] =>> List[Option[α]]]
val result: Map[String, Int]
val source: List[String]
val voidTask: Task[Unit]
val voidTask2: Task[Unit]