Hash :
b7c69b9f
Author :
Thomas de Grivel
Date :
2024-02-12T19:45:10
quote fn (x) { x }
quote fn (x, _y) { x }
quote fn ([x | _y]) { x }
quote fn {
([]) { :error }
([x | _y]) { x }
(_) { :error }
}
quote fn (x) do
"Hello, world !"
x * 2
end
a = fn (x) { x }
a(1)
b = fn (x, _y) { x }
b(1, 2)
c = fn ([x | _y]) { x }
c([1, 2])
d = fn {
([]) { :error }
([x | _y]) { x }
(_) { :error2 }
}
d([1, 2])
e = fn (x) do
"Hello, world !"
x * 2
end
e(2)