This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.
Projections Function Name Code Example Explanation map(<fun>) List(1, 2, 3).map(_ + 1) --> List(2, 3, 4) Returns a stream in which fun is applied to each element. mapMany(<fun>) mapMulti flatMap mapFlat mapAndFlatten List(1, 2).mapMany(x -> List(x, x)) --> List(1, 1, 2, 2) List(1, 2).mapMany(x -> Some(x)) --> List(1, 2) List(1, 2).mapMany(x -> None) --> List() Returns a stream in which fun is…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.