Reputation: 797
very simple how would you represent a list with no entries
Upvotes: 1
Views: 137
Reputation: 53725
Also, ""
is an empty String, and String
s are just lists of Char
s.
Upvotes: 1
Reputation: 55465
An empty list is simply []
For example, defining a variable that holds an empty list can be done by:
emptyList :: [a]
emptyList = []
Upvotes: 4