planet-mitchell-0.1.0: Planet Mitchell
List1.Partial
(!!) :: NonEmpty a -> Int -> a infixl 9 #
xs !! n returns the element of the stream xs at index n. Note that the head of the stream has index 0.
xs !! n
xs
n
Beware: a negative or out-of-bounds index will cause an error.
fromList :: [a] -> NonEmpty a #
Converts a normal list to a NonEmpty stream.
NonEmpty
Raises an error if given an empty list.