Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
initWithDefault :: [a] -> [a] -> [a]Agda Agda.Utils.List init, safe. O(n).
lastWithDefault :: a -> [a] -> aAgda Agda.Utils.List Last element (safe). Returns a default list on empty lists. O(n).
tailWithDefault :: [a] -> [a] -> [a]Agda Agda.Utils.List Tail function (safe). Returns a default list on empty lists. O(1).
headWithDefault :: a -> [a] -> aBNFC BNFC.Utils Get the first element of a list, fallback for empty list.
findWithDefaultL :: DomCodCnt l r => Cod l -> Bimap l r -> Dom l -> Cod lbimaps Data.Bijection.Class No documentation available.
findWithDefaultR :: DomCodCnt l r => Cod r -> Bimap l r -> Dom r -> Cod rbimaps Data.Bijection.Class No documentation available.
fromListWithDefault :: a -> [a] -> BinList abinary-list Data.BinaryList O(n). Build a binary list from a linked list. If the input list has length different from a power of two, fill to the next power of two with a default element. Warning: this function crashes if the input list length is larger than any power of two in the type Int. However, this is very unlikely.
lookupWithDefault :: a -> ByteString -> Trie a -> abytestring-trie Data.Trie.Convenience Lookup a key, returning a default value if it's not found.
-
construct Construct Like optional except with arbitrary default serialization for the Nothing value.
optional = optionWithDefault (literal mempty)
parseArgumentWithDefault :: String -> Parser b -> b -> Parser bcurrycarbon Currycarbon.ParserHelpers No documentation available.