| Copyright | (C) 2024 Koji Miyazato |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Koji Miyazato <viercc@gmail.com> |
| Stability | experimental |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Data.List.TwoOrMore
Description
Documentation
List of two or more elements
Constructors
| TwoOrMore a a [a] |
Instances
toNonEmpty :: Foldable1 t => t a -> NonEmpty a #
List of elements of a structure, from left to right.
>>>toNonEmpty (Identity 2)2 :| []
Since: base-4.18.0.0