Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
pp:2024:scala:l02 [2025/03/05 10:46] pdmatei |
pp:2024:scala:l02 [2025/03/05 10:47] (current) pdmatei |
||
|---|---|---|---|
| Line 56: | Line 56: | ||
| <code scala> | <code scala> | ||
| def foldMap(op: (Int,Int) => Int, f: Int => Int)(start: Int, stop: Int): Int = ??? | def foldMap(op: (Int,Int) => Int, f: Int => Int)(start: Int, stop: Int): Int = ??? | ||
| - | </c | + | </code> |
| - | ode> | + | |
| ===== 2.3 Curry vs Uncurry ===== | ===== 2.3 Curry vs Uncurry ===== | ||
| Line 73: | Line 72: | ||
| else z | else z | ||
| } | } | ||
| - | </ | + | </code> |
| - | code> | + | |
| ===== 2.4 Function transformations ===== | ===== 2.4 Function transformations ===== | ||