thunk (fn(x : Nat): MaybeNat {
  match(unroll(x)) {
    case Nat.zero as x -> return MaybeNat.nothing
    case Nat.succ as x -> let y = x.0 in return MaybeNat.just(y)
  }
})

를 Lumo로 타입 검사할 수 있게 되었다. sub1이라는 이름을 붙일 수 있는 함수다.

2

If you have a fediverse account, you can reply to this note from your own instance. Search https://hackers.pub/ap/notes/019a646f-cb0c-7b26-99f7-158afd58fc9e on your instance and reply to it.