Using the clojure functions, I can determine:
(defn f [x & xs] (apply some-function x xs))
I am trying to do the same with a protocol, for example.
(defprotocol foo (bar [f]) (baz [f & gs]))
This compiles (at least in the REPL), but any type of implementation seems to fail in this (variational, basic) method. Is this officially not supported? The sources I consulted are silent.
clojure protocols
Rob Lachlan Mar 23 2018-11-11T00: 00Z
source share