Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.25 KB | None | 0 0
  1. def zad3(list:List[Double]):Double = {
  2.   def help(list:List[Double], number:Double):Double =
  3.     if (list.isEmpty) number
  4.     else if (list.head < number) help(list.tail, list.head)
  5.     else help(list.tail, number)
  6.   help(list.tail, list.head)
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement