Fish Wang says to YSITD
calc = (a, b)-> switch when a is 0 then 0 when b is 0 then 0 when a % b is 0 then b else calc b, a % b coffee script