Sometimes you have functions with very long argument lists:
f[a_, b_, c_, d_, e_] := c
so is there a way to "name" these arguments (order insensitive) so that users can know what they're getting more easily? In pseudo-code:
f[c = "what I'm getting", a = 1, b = 2, d = 0, e = 1]
This is similar to "record syntax" in other programming languages.
Comments
Post a Comment