Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
pp:2025:l08 [2025/04/19 14:01] cezar.zlatea created |
pp:2025:l08 [2025/04/27 21:42] (current) ldaniel updated link to lab1 2025 |
||
---|---|---|---|
Line 12: | Line 12: | ||
==== A trip through time ==== | ==== A trip through time ==== | ||
- | Remember: [[pp:2024:scala:l01|Lab 1. Introduction to Scala]] | + | Remember: [[pp:2025:scala:l01|Lab 1. Introduction to Scala]] |
**8.1.1.** Implement a tail-recursive function that computes the factorial of a natural number. | **8.1.1.** Implement a tail-recursive function that computes the factorial of a natural number. | ||
Line 46: | Line 46: | ||
</code> | | </code> | | ||
- | **8.1.4.** Implement funtions ''mymin'' and ''mymax'' that take a list of ints, and return the smallest/biggest value in the list. | + | **8.1.4.** Implement functions ''mymin'' and ''mymax'' that take a list of ints, and return the smallest/biggest value in the list. |
**8.1.5.** Implement a function ''unique'' that takes a list of ints, and removes all duplicates. | **8.1.5.** Implement a function ''unique'' that takes a list of ints, and removes all duplicates. |