feat: finish list deconstruct

This commit is contained in:
Kasey White
2022-11-23 06:30:37 -05:00
committed by Lucas
parent e6f6d8a42d
commit dc510b1c7a
2 changed files with 157 additions and 160 deletions

View File

@@ -38,8 +38,10 @@ pub fn spend(
let z = [1, ..y]
when z is {
[] -> False
[a] -> a == 1
[a,b] -> b == 2
[a,b,c] -> a > 1
[a,b, c,..d] -> b > 1
_other -> False
_other -> True
}
}