function f(a, b, c, d) a = a or 1 b = b or 2 c = c or 3 d = d or 4 end
f = (a=1, b=2, c=3, d=4) -> ...