Support an Open Source Developer! :hearts:
Partial Function
A clean way to define function as a set of smaller functions where each has defined start and end bounds.
Partial Function
Achieves the following:
f(x) = {
x if 0 <= x < 5
x * 2 if 5 <= x <= 10
}
Expressed as:
let p = new
.with
.with
.build;
assert_eq!;
Lower Partial Function
Achieves the following:
f(x) = {
x if 0 <= x < 5
x * 2 if 5 <= x
}
Expressed as:
let f = new
.with
.with
.build;
assert_eq!;