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 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 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.