scala - safe Iterator.max -
Is there a library that provides functions like What to do for me, but using a library is always better to duplicate the code.) : The only problem is that it is not You can work directly with Iterators, so you instead (like Iterator.max , but it
Option [A] possibly due to a
A account for blank eaterators? Alternatively, is there any library that provides class
PosInf [A] or
A to do this?
MA.maximum Usage:
import scalaz._; Import Scalaz._ List (1, 2, 3) .maximum == Some (3) List.empty [Int] .maximum == Any
Iterator.toStream )
list (using 1, 2)
Comments
Post a Comment