In Daniel's answer from this post: What are Scala context and view bounds?
is presented a way of handling a String as a Scala Collection.
handling String and Array, which are Java classes, like they were Scala >collections. For example:
def f[CC <% Traversable[_]](a: CC, b: CC): CC = if (a.size < b.size) a else b
I would like to know where I can find this functionality in the Scala standard libs.
Another easy question related to the post above:
I keep seeing the shorthand "ev" used, especially when related to context bounds or view bounds examples:
def g[A](a: A)(implicit ev: B[A]) = h(a)
What does it stand for?
Thank you in advance. Cheers