Just reading about Scala, and how the exists method that acts on collections reduces code duplication etc.
How could you write a function similar to exists that acts on collections yourself? Is it possible?
Sort of like a c# extension method that acts on a particular type.
Sure, you can do that using implicit conversions.