Some examples to illustrate how to create custom collection in scala. Those examples inherit all theirs features from scala collections, and of course theirs types are preserved when involved in any kind of operations (filtering, mapping, ...).

github project page, with test cases : custom collection examples project