This commit is contained in:
ProgramSnail 2023-05-17 18:29:39 +03:00
parent b723fd6a65
commit 3abac1b643
6 changed files with 27 additions and 18 deletions

View file

@ -123,13 +123,15 @@ typeclass Enum =
//
decl ( -- ) : Int -> Int -> Int_0
def ( -- ) : begin end = {
var current = begin
return (while current < end do {
; current += 1
return current - 1
})
}
// def ( -- ) : begin end = {
// var current = begin
// return (while current < end do {
// ; current += 1
// return current - 1
// })
// }
decl print : String -> Unit
decl func : String -> Int
def func : s = {