Jan-08-2019, 12:56 PM
(Jan-08-2019, 12:21 PM)Larz60+ Wrote: Sort of, the number of function arguments must be matched, unless optional. For example:
def foo(a, b): ...must be passed two arguments.
but:
def foo(a, b=1): ...Only requires a, but b is optional, and defaults to 1 if not provided.
Perhaps my entire interpretation of Lambda functions (when used within another function) is completely off. I perceived them as being similar to models and factories? That is, they allow you to create a 'blueprint' for a function from which new functions (which perform the same sort of operations) may be quickly and easily created?