14 lines
117 B
Plaintext
14 lines
117 B
Plaintext
fn arity {
|
|
() -> 0
|
|
(_) -> 1
|
|
(_, _) -> 2
|
|
(_, _, ...) -> {
|
|
and (1, 2, 3)
|
|
:many
|
|
}
|
|
}
|
|
|
|
arity(:foo, :bar, :baz)
|
|
|
|
|