xs !! n returns the element of the stream xs at index
n. Note that the head of the stream has index 0.
Beware: a negative or out-of-bounds index will cause an error.
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Modulerio-0.1.22.0Haskell2010
NonEmpty list partial functions. Import as:
import qualified RIO.NonEmpty.Partial as NE'xs !! n returns the element of the stream xs at index
n. Note that the head of the stream has index 0.
Beware: a negative or out-of-bounds index will cause an error.
Converts a normal list to a NonEmpty stream.
Raises an error if given an empty list.