feat: nested constr access and module funcs now work
This commit is contained in:
@@ -18,8 +18,8 @@ pub type Datum {
|
||||
rdmr: Redeem,
|
||||
}
|
||||
|
||||
pub fn eqInt(a: Int, b: Int) {
|
||||
a == b
|
||||
pub fn eqIntPlusOne(a: Int, b: Int) {
|
||||
a + 1 == b
|
||||
}
|
||||
|
||||
pub fn eqString(a: ByteArray, b: ByteArray) {
|
||||
@@ -35,3 +35,13 @@ pub type Other {
|
||||
Wow
|
||||
Yes
|
||||
}
|
||||
|
||||
pub fn incrementor(counter: Int, target: Int) -> Int {
|
||||
if counter == target {
|
||||
counter
|
||||
} else if counter > target {
|
||||
counter - target
|
||||
} else {
|
||||
incrementor(counter + 1, target)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user