SequenceableCollection>>concat (which should really be renamed to #join) contains the following comment:
"In the special case of empty receiver, answer #()."
and then this code:
self isEmpty ifTrue: [^#()].
I am starting to think this is nonsense. #concat is MacLane's μ :: T²→T. In order for T² to make sense, the species of the outer collection must match the species of the inner collection.
SequenceableCollection>>concat
(which should really be renamed to#join
) contains the following comment:and then this code:
I am starting to think this is nonsense.
#concat
is MacLane's μ :: T²→T. In order for T² to make sense, the species of the outer collection must match the species of the inner collection.