Simple for loop iterates over a collection, translated to foreach method.
for with yield translated to a withFilter followed by map method.
It searches for specified value and return Int.
Explain the main difference between List and Stream in Scala Collection API? How do we prove that difference? When do we choose Stream?