4.12.1 Functional Programming
4.12.1 Functional Programming
Questions Notes
Functions:
-A function is a rule that, for each element in some set A of
inputs, assigns an output chosen from set B, but without
necessarily using every member of B.
-An argument is a piece of data passed to a function it could be a
number, a character or any other data type.
-Functions are said to be applied to their arguments, creating the
return value.
-Functions will specify what data type is required for the argument.
Key Terms
Statelessness Immutability