4 ms·
In my libbug library, computation at Compile-Time uses the exact same language as the run-time {at-both-times {define fact [|n| (if (= n 0)
by billsix 9y ago
In my libbug library, computation at Compile-Time uses the exact same language as the run-time
{at-both-times
{define fact
[|n| (if (= n 0)
[1]
[(* n (fact (- n 1)))])]}}
(pp {at-compile-time-expand (fact 3)})
(pp (fact 3))
https://github.com/billsix/bug https://github.com/billsix/bug