Sorry, (still) newbie here: How can I write List literals?
I know how to write Array literals:
[3,8,17]
But if I use that with Data.List.length
I get the error “Could not match type List with type Array”. This makes sense, but how can I write Lists in my code?
If this is not possible, I might ask: Why is Array the basic data structure (with literals) and List not?