This matches the pattern for the list of lists. It corresponds to a list with at least one element, where the first element is an empty list . For example [[]]
, or [[], [2,4]]
, [[], [], [1,4], [2], [5]]
.
A list in Haskell is defined as a linked list with two constructors: []
an empty list and (a:as)
"cons", where a
- "head" (the first element of the list), and as
tail (a list containing the rest of the elements).
, _
" ". , cons (a:as)
, a
( ) - []
, as
- _
, .
myTranspose
, , .