robert-strandh / SICL

A fresh implementation of Common Lisp
Other
1.07k stars 79 forks source link

Where's Greatest Common Divisor? #208

Closed irigone closed 3 years ago

irigone commented 3 years ago

Where's GCD defined, if it is at all? I lurk here to learn Common Lisp, loving it. Sorry for the disturbance

robert-strandh commented 3 years ago

We haven't defined that yet. It is going to be a function that calls BINARY-GCD, and BINARY-GCD will be a generic function. Initially, there will be a method specialized only to FIXNUM and FIXNUM, as the algorithms on bignums are complicated and we need to study them more.

irigone commented 3 years ago

Added in #209