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.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11
Modulerio-0.1.25.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.