So I finally found a nice functional data structure, Scalaz DList
, for constant prepend/append and a good complexity for concatenating two collections, however why doesn't DList
have a size or length member method, and how do I calculate its size?
An isEmpty
function would do as well.
Thanks