emporas writes:
emporas writes:
> Now that the practice of applying collision resistant hashes (ie
> unique strings), to save multiple
> versions of structures with the possibility of overlapping, is
> becoming less deficient thanks to better
> hardware, i am wondering if there is a compiler in
Dennis Haupt writes:
> yes. all glory to the repl that makes me figure out the internals via
> experiments :D
> is there a way to just pass the given value along?
Yes, that's what I meant by my inspect method in my original reply. It
prints the value and passes it along:
(defn inspect [
Dennis Haupt writes:
> i am not trying anything, i just want to figure out what happens. this is my
> output for the "print" version:
> user=> (defmulti fac print)
> (defmethod fac 1 [_] 1)
> (defmethod fac :default [n] (*' n (fac (dec n
> #'user/fac
> #
> #
> user=> (fac 1)
> 10-1-2-3-4-5-6
Dennis Haupt writes:
> i was taking a look at multimethods:
> (defmulti fac int)
> (defmethod fac 1 [_] 1)
> (defmethod fac :default [n] (*' n (fac (dec n
>
> this works
>
> however, this also works:
>
> (defmulti fac print)
> (defmethod fac 1 [_] 1)
> (defmethod fac :default [n] (*' n (fac (