I have some collection, that implements `def foreach(f: MyType => Unit): Unit`.

`MyType` has member `val value: Int` that is greater or equals to zero in normal case.

How coud i find element with maximum `value` using `foreach`?

***UPD:***

There should be method `def max: MyType` within `MyType` implementing this logic.