Created
January 16, 2023 20:56
-
-
Save fermartz/2e92a85988ebcf297e01c94c5d02afd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Int "mo:base/Int"; | |
actor { | |
// ************************* | |
// *** MIN MAX FUNCTIONS *** | |
// ************************* | |
public func get_min_value(x : Int, y : Int) : async Int { | |
let min = Int.min(x, y); | |
min; | |
}; | |
public func get_max_value(x : Int, y : Int) : async Int { | |
let max = Int.max(x, y); | |
max; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment