Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
fp:lab04 [2022/03/09 20:47]
pdmatei
fp:lab04 [2022/05/15 23:54] (current)
vbadoiu old revision restored (2022/03/25 10:15)
Line 18: Line 18:
 <code scala> <code scala>
 def take(n: Int, l: List[Int]): List[Int] = ??? def take(n: Int, l: List[Int]): List[Int] = ???
-//​take(3,​List(1,​2,​3,​4,​5)) = 3+//​take(3,​List(1,​2,​3,​4,​5)) = List(1,2,3)
 </​code>​ </​code>​