Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
pp:2026:scala:l02 [2026/03/05 13:46] ldaniel |
pp:2026:scala:l02 [2026/03/06 13:09] (current) ana.ailiesei |
||
|---|---|---|---|
| Line 79: | Line 79: | ||
| </code> | </code> | ||
| - | **2.3.5** Write a function ''sum'' which takes values start, end and computes the sum of numbers between start and end. | + | **2.3.5** Write a function ''sum'' which takes values start, stop and computes the sum of numbers between start and stop. |
| Use the curry function ''foldWith'' defined before. | Use the curry function ''foldWith'' defined before. | ||
| <code scala> | <code scala> | ||