Multi arity functions #2570
-
Does hy support multi arity functions? If so can someone point me in the right direction please? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
Kodiologist
Apr 21, 2024
Replies: 1 comment
-
They were removed in #1842. Use multidispatch from PyPI instead. Unless by "multi-arity" you just mean "variadic". That's accomplished with optional arguments, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Kodiologist
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
They were removed in #1842. Use multidispatch from PyPI instead.
Unless by "multi-arity" you just mean "variadic". That's accomplished with optional arguments,
#*
, and#**
; see the documentation ofdefn
.