| Copyright | (c) 2016 Stephen Diehl (c) 2016-2018 Serokell (c) 2018-2020 Kowainik |
|---|---|
| License | MIT |
| Maintainer | Kowainik <xrom.xkov@gmail.com> |
| Stability | Stable |
| Portability | Portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Relude.List
Description
Utility functions to work with lists and NonEmpty lists.
Synopsis
- module Relude.List.Reexport
- module Relude.List.NonEmpty
- (!!?) :: [a] -> Int -> Maybe a
Documentation
module Relude.List.Reexport
Most of the Data.List types and function.
Note, that list partial functions (e.g. head) are not exported from
Data.List.
Instead relude provides safe functions that work with
NonEmpty. You can find them in the
Relude.List.NonEmpty module instead.
module Relude.List.NonEmpty
Reexports from Data.List.NonEmpty and additional safe functions to work with
list type in terms of NonEmpty.