rudus/sandbox.ld

16 lines
230 B
Plaintext
Raw Normal View History

2025-06-23 00:26:08 +00:00
fn my_eq? {
(x, y, ...zs) -> if eq? (x, y)
then loop (y, zs) with {
(a, [b]) -> and (eq? (a, x), eq? (b, x))
(a, [b, ...cs]) -> if eq? (a, x)
then recur (b, cs)
else false
}
else false
}
2025-06-23 00:26:08 +00:00
my_eq? (1, 1, 3)