linsyking / messenger-core / Messenger.RecursionList

RecursionList

List implementation for the recursion algorithm

updateObjects : Messenger.Recursion.RecBody a b c d -> c -> List a -> ( List a, List b, c )

Recursively update all the objects in the List

updateObjectsWithTarget : Messenger.Recursion.RecBody a b c d -> c -> List ( d, b ) -> List a -> ( List a, List b, c )

Recursively update all the objects in the List, but also uses target

Tools

getObjectByIndex : Basics.Int -> List a -> Maybe a

Get the object by index

getObjectIndices : Messenger.Recursion.Matcher a d -> d -> List a -> List Basics.Int

Get the indices of the objects that match the target

getObjectIndex : Messenger.Recursion.Matcher a d -> d -> List a -> Maybe Basics.Int

Get the index of the object that matches the target (the first one)

getObjects : Messenger.Recursion.Matcher a d -> d -> List a -> List a

Get the objects that match the target

getObject : Messenger.Recursion.Matcher a d -> d -> List a -> Maybe a

Get the object that matches the target (the first one)