package main
type Nat enum {
zero
succ(Nat)
}
type Bool enum {
false
true
}
// Ask the compiler what the parameter is.
func isZero(n _) Bool {
switch n {
case zero: return true
case succ(k): return false
}
}
// Two labelled holes, so the answers can be told apart.
func twice(n ?operand) ?result {
return succ (succ n)
}
// A hole in a local, with something in scope around it.
func plusOne(n Nat) Nat {
var m _ = succ n
return m
}
holes-demo.ml:14:15: found hole '_' standing for Nat
holes-demo.ml:22:14: found hole '?operand' standing for Nat
holes-demo.ml:22:24: found hole '?result' standing for Nat
in scope:
n : Nat
holes-demo.ml:28:11: found hole '_' standing for Nat
in scope:
n : Nat
shit, I didn't know it is possible to detect ipv6 for servers and connect over ssh. Claude is getting dangerous 🙈🙈🙈
🤣1
A junior dev: What is the benefit of Emacs over GoLand?
Me: You can say managers my emacs is hang
Me: You can say managers my emacs is hang
This media is not supported in your browser
VIEW IN TELEGRAM
Definition Tiyin := Z.
Definition Percent := Z.
Definition pct (a : Tiyin) (p : Percent) : Tiyin :=
Z.quot (a * p) 10000.