The page Effects has this paragraph which explains "A higher-order function can also require that a function is impure.". But the syntax ~> used in this example
def foreach(f: a ~> Unit, l: List[a]): Unit & Impure
is not allowed anymore. And the paragraph should be rewritten.
The page
Effects
has this paragraph which explains "A higher-order function can also require that a function is impure.". But the syntax~>
used in this exampleis not allowed anymore. And the paragraph should be rewritten.