wjlow/intro-to-scala

ListExercises.min implementation is unsafe

Closed this issue · 1 comments

ssanj commented

The current implementation of:

def min(nums: List[Int]): Int

uses a INT.MInValue as default.

I guess this is because we haven't covered Option yet?

wjlow commented

Yes!