NOTE: the latest version is 11.2.0
Reduce key-value-entries in a Dict in a direction.
key
value
Dict
import Linear exposing (DirectionLinear(..)) import Dict Dict.fromList [ ( "Dies", 39 ), ( "Wonu", 22 ), ( "Eorfe", 18 ) ] |> Dict.Linear.foldFrom ( [], Up, \user -> (::) user.key ) --> [ "Wonu", "Eorfe", "Dies" ] Dict.fromList [ ( "Dies", 39 ), ( "Wonu", 22 ), ( "Eorfe", 18 ) ] |> Dict.Linear.foldFrom ( [], Down, \user -> (::) user.key ) --> [ "Dies", "Eorfe", "Wonu" ]
Reduce
key-value-entries in aDictin a direction.