I have been looking at the Sequence
module in the Janestreet’s Base library and I was surprised to see that there is no cons: 'a -> 'a t -> 'a t
function. In contrast, such a function is present in the Seq
module of the standard library.
Is there a specific reason for omitting cons
from Sequence
(e.g. its abuse may lead to performance problems) or am I missing an alternative?