You constructed a list!
Well done, that was tricky syntax. You used the (:) function. It takes two values, some value and a list, and constructs a new list out of them. We call it 'cons' for short.
No it's not:
> 'a' : [] => "a"
Well done, that was tricky syntax. You used the (:) function. It takes two values, some value and a list, and constructs a new list out of them. We call it 'cons' for short.
No it's not:
> 'a' : [] => "a"
[1] Which incidentally is a reason to avoid using it for anything serious. Text is the better representation of text, and ByteString is better for everything else.
> 'a' : "" => "a"
Because that's what you did.