Open sritchie opened 3 years ago
@sritchie like you'd suggested, I'd like to get started with this!
That's excellent, @kolharsam ! Some tips:
sicmutils.generic
(fn call
([] default-case)
([x] (unary-fn x))
([x y] (binary-fn x y))
([x y & more]
(reduce call (call x y) more)))
tests go into test/sicmutils/generic_test.cljc
Let me know if I can help with anything!
@kolharsam assigned you, so this is yours :)
This is how the operation is defined in Scheme:
The task here would be to
g/-gcd
andg/-lcm
g/gcd
,g/lcm
that wraps them and does this trick with both functions.