NOTE: the latest version is 11.2.0
Set operations that can be applied in either Direction
Set
Direction
Reduce in a Direction from a given initial accumulated thing
import Linear exposing (Direction(..)) import Set Set.fromList [ 'i', 'l', 'a', 'g' ] |> Set.Linear.foldFrom "" Up String.cons --> "liga" Set.fromList [ 'i', 'l', 'a', 'g' ] |> Set.Linear.foldFrom "" Down String.cons --> "agil"
To allow any key, try elm-keysset
elm-keysset
Reduce in a
Directionfrom a given initial accumulated thing