EngageSoftware / elm-engage-common / Engage.SelectDict

SelectDict


type SelectDict comparable a

A SelectDict type

getAfter : SelectDict comparable a -> Dict comparable a

Get the after Dict

getBefore : SelectDict comparable a -> Dict comparable a

Get the before Dict

fromDicts : Dict comparable a -> ( comparable, a ) -> Dict comparable a -> SelectDict comparable a

Convert a normal Dict into a SelectDict

insertAfter : comparable -> a -> SelectDict comparable a -> SelectDict comparable a

Insert into the after Dict

insertBefore : comparable -> a -> SelectDict comparable a -> SelectDict comparable a

Insert into the before Dict

keys : SelectDict comparable a -> List comparable

Get the keys of the SelectDict

map : (comparable -> a -> b) -> SelectDict comparable a -> SelectDict comparable b

Map a SelectDict

next : SelectDict comparable a -> SelectDict comparable a

Get the next SelectDict

prev : SelectDict comparable a -> SelectDict comparable a

Get the previous SelectDict

segments : SelectDict comparable a -> ( Dict comparable a, ( comparable, a ), Dict comparable a )

Get the segments of the SelectDict

select : comparable -> SelectDict comparable a -> SelectDict comparable a

Select something from the SelectDict

getSelected : SelectDict comparable a -> ( comparable, a )

Get the selected Dict

selectedKey : SelectDict comparable a -> comparable

Get the selected key

selectedValue : SelectDict comparable a -> a

Get the selected value

size : SelectDict comparable a -> Basics.Int

Get the size of the SelectDict

toDict : SelectDict comparable a -> Dict comparable a

Get a normal Dict from a SelectDict

toSelectList : SelectDict comparable a -> SelectList a

Get a SelectList from a SelectDict

updateSelected : (comparable -> a -> a) -> SelectDict comparable a -> SelectDict comparable a

Update the selected SelectDict

values : SelectDict comparable a -> List a

Get the values of the SelectDict