September 2017
Beginner to intermediate
396 pages
9h 46m
English
It is important to note that the type String in Haskell is implemented as a list of Char:
type String = [Char]
Hence, all list operations are valid string operations as well. The snippets 17 and 18 show this by applying list functions on String. Since list is not a random access collection and operations such as concatenation are not constant time operations, strings in Haskell are not very efficient. There are libraries such as text that implement strings in a very efficient way.
Read now
Unlock full access