Concatenation is the joining together of sequences of values. Often in Haskell, this is meant with respect to the [], or list, datatype, which also applies to String (which, as we know, is [Char]). The concatenation function in Haskell is ++, which has type [a] -> [a] -> [a]. For example:
Concatenation is the joining together of sequences of values. Often in Haskell, this is meant with respect to the
[]
, or list, datatype, which also applies to String (which, as we know, is[Char]
). The concatenation function in Haskell is++
, which has type[a] -> [a] -> [a]
. For example:Results in
tacos rock