Lyric v1.0.0

std.option

map function

pub fn map<T, U>(o: ?T, f: fn(T) -> U): ?U

stdlib/std/option.lyr:28

andThen function

pub fn andThen<T, U>(o: ?T, f: fn(T) -> ?U): ?U

stdlib/std/option.lyr:39

filter function

pub fn filter<T>(o: ?T, pred: fn(T) -> bool): ?T

stdlib/std/option.lyr:47

zip function

pub fn zip<T, U>(a: ?T, b: ?U): ?(T, U)

stdlib/std/option.lyr:59

contains function

pub fn contains<T :: [Equatable<T>]>(o: ?T, value: T): bool

stdlib/std/option.lyr:70

toArray function

pub fn toArray<T>(o: ?T): T[]

stdlib/std/option.lyr:80

OptionIterator class

pub class OptionIterator<T> :: [Iterator<T>]
value: ?T
done: bool
pub mut fn next(): ?T

stdlib/std/option.lyr:91

iter function

pub fn iter<T>(o: ?T): OptionIterator<T>

stdlib/std/option.lyr:106

expect function

pub fn expect<T>(o: ?T, message: string): T

stdlib/std/option.lyr:117