Hoogle Search
Within LTS Haskell 24.64 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
lookupFL :: Int -> FocusList a -> Maybe afocuslist Data.FocusList Lookup the element at the specified index, counting from 0.
>>> let Just fl = fromListFL (Focus 0) ['a'..'c'] >>> lookupFL 0 fl Just 'a'
Returns Nothing if the index is out of bounds.>>> let Just fl = fromListFL (Focus 0) ['a'..'c'] >>> lookupFL 100 fl Nothing >>> lookupFL (-1) fl Nothing
Always returns Nothing if the FocusList is empty.lookupFL i emptyFL == Nothing
complexity: O(log(min(i, n - i))) where i is the index you want to look up, and n is the length of the FocusList.lookupName :: forall (n :: S) a . Name n -> NameMap n a -> afree-foil Control.Monad.Foil Looking up a name should always succeed. Note that since Name is Sinkable, you can lookup a name from scope n in a NameMap for scope l whenever l extends n.
lookupSubst :: forall e (i :: S) (o :: S) . InjectName e => Substitution e i o -> Name i -> e ofree-foil Control.Monad.Foil Apply substitution to a given name.
lookupName :: forall (n :: S) a . Name n -> NameMap n a -> afree-foil Control.Monad.Foil.Internal Looking up a name should always succeed. Note that since Name is Sinkable, you can lookup a name from scope n in a NameMap for scope l whenever l extends n.
lookupSubst :: forall e (i :: S) (o :: S) . InjectName e => Substitution e i o -> Name i -> e ofree-foil Control.Monad.Foil.Internal Apply substitution to a given name.
lookupNode :: Node -> NodeManager k -> Maybe kgraph-core Data.Core.Graph.NodeManager No documentation available.
-
greskell Data.Greskell.AsLabel Lookup the value and parse it into a.
-
greskell Data.Greskell.AsLabel MonadThrow version of lookupAs.
-
greskell Data.Greskell.AsLabel MonadThrow version of lookup. If there is no value for the key, it throws PMapNoSuchKey.
-
greskell Data.Greskell.Extra Lookup the value and parse it into a.