Fix syntax error in test case (but the problem is much deeper).
Chris Pressey
3 years ago
322 | 322 | |
323 | 323 | letrec |
324 | 324 | oddsump = fun(x,y,z) -> if eq(add(x, add(y, z)), add(y, z)) then false else evensump(sub(x, 1), add(y, z)) |
325 | evensump = fun(p,q) -> if eq(add(x, q), q) then true else oddsump(sub(x, 1), 1, sub(q, 1)) | |
325 | evensump = fun(p,q) -> if eq(add(p, q), q) then true else oddsump(sub(p, 1), 1, sub(q, 1)) | |
326 | 326 | in |
327 | 327 | oddsump(5,3,1) |
328 | 328 | ===> true |