Morph an elm/core Set element
Morph
elm/core
Set element
Morph all elements. On the narrowing side all narrowed values must be Ok for it to not result in a Morph.Error
Ok
Morph.Error
If the given element Morph is OneToOne, each will always succeed with the type knowing it does
OneToOne
each
Morph.OneToOne from a List
Morph.OneToOne
List
import Set import Morph [ 0, 1, 2, 3 ] |> Morph.mapTo Set.Morph.list --> Set.fromList [ 0, 1, 2, 3 ]
Inverse of List.Morph.set
List.Morph.set
Set MorphValue
Set
MorphValue
Morphall elements. On the narrowing side all narrowed values must beOkfor it to not result in aMorph.ErrorIf the given element
MorphisOneToOne,eachwill always succeed with the type knowing it does