(1) FoldR, Filter etc. says "missing else clause" Possible reason: Interchanged the order of list and input function. The procedure is trying to pattern match a function on the list pattern.