Pure functions
Objectives :
Connection - 10'
import random
def f(x):
if random.randint(1, 2) == 1:
return x + 1
return x + 2public class MathUtility {
public static int sum(int num1, int num2) {
return num1 + num2;
}
}public class Line {
private int value = 0;
public int add(int nextValue) {
this.value += nextValue;
return this.value;
}
}Concept - 5'
Concrete Practice - 30'

Conclusion - 10'
Last updated