Init next project
This commit is contained in:
9
Project-02/triplaprograms/wrapper.tripla
Normal file
9
Project-02/triplaprograms/wrapper.tripla
Normal file
@@ -0,0 +1,9 @@
|
||||
let wrapper(number, threshold) {
|
||||
let square(x) {
|
||||
if x*x > threshold
|
||||
then x
|
||||
else x*x
|
||||
}
|
||||
in square(number)
|
||||
}
|
||||
in wrapper(4, 10)
|
||||
Reference in New Issue
Block a user