Hi, I'm really, really new to Haskell. I'm practicing with simple online questions and there's a hcf question which I found the answer to online(http://snipplr.com/view.php?codeview&id=11973) but I still don't understand the coding. I'm not sure if this kind of question is accepted in Daniweb but yeah. Could someone please explain to me?
hcf a 0 = a
hcf a b = hcf b y
where y = mod a b
mod a b, ofc understandable but the first 2 lines. why is there a 0, why = a ?