Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def zad3(list:List[Double]):Double = {
- def help(list:List[Double], number:Double):Double =
- if (list.isEmpty) number
- else if (list.head < number) help(list.tail, list.head)
- else help(list.tail, number)
- help(list.tail, list.head)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement