Hoogle Search
Within LTS Haskell 24.9 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
lastOf :: Fold s t a b -> s -> Maybe alens-family Lens.Family2 Returns Just the last referenced value. Returns Nothing if there are no referenced values.
lastDim :: Index ix => ix -> Intmassiv Data.Massiv.Core.Index Get the innermost dimension from the index
Examples
>>> lastDim (2 :> 3 :> 4 :. 5) 5
last' :: (HasCallStack, Source r e) => Vector r e -> emassiv Data.Massiv.Vector O(1) - Get the last element of a Source vector. Throws an error on empty. Related: lastM, unsnocM
Examples
>>> last' (Ix1 10 ... 10000000000000) 10000000000000
Similar:lastM :: (Source r e, MonadThrow m) => Vector r e -> m emassiv Data.Massiv.Vector O(1) - Get the last element of a Source vector. Related: last', unsnocM Throws Exceptions: SizeEmptyException
Examples
>>> lastM (Ix1 10 ... 10000000000000) 10000000000000 >>> lastM (Ix1 10 ... 10000000000000) :: Maybe Int Just 10000000000000 >>> either show (const "") $ lastM (fromList Seq [] :: Array P Ix1 Int) "SizeEmptyException: (Sz1 0) corresponds to an empty array"
-
protolude Protolude.Safe No documentation available.
-
protolude Protolude.Safe No documentation available.
lastIndexOf :: TypedArray a => Int -> Elem a -> a -> JSM Intjsaddle JavaScript.TypedArray No documentation available.
lastIndexOf :: TypedArray a => Int -> Elem a -> a -> JSM Intjsaddle JavaScript.TypedArray.Internal No documentation available.
lastRequestResponseContext :: Show respBody => Request -> Response respBody -> Stringsydtest-wai Test.Syd.Wai.Client An assertion context, for Context, that shows the last request and response
lastException :: ForeverE e s -> eessence-of-live-coding LiveCoding.Forever No documentation available.