Select a Pre-defined Filter Definition.
Filter |
|
|
Filter Definitions
Filter
|
Definition
|
Values
|
|
Select a Pre-defined Function Definition.
Function |
|
|
Function Definitions
Function
|
Definition
|
Values
|
|
Select a Pre-defined List Function Definition.
List Function |
|
|
List Function Definitions
List Function
|
Definition
|
Values
|
|
Select a Pre-defined List Definition.
List |
|
|
List Definitions
List
|
Definition
|
Values
|
|
Enter Program |
Select a command |
Enter a list of integer values separated by spaces |
About the Sets/List and Functional Programming Activity
Function DefinitionsThere are a number of different types of function that can be defined. The return values from a function can be one of the following:
Defining a function may require up to three different parameters: a, b and c. The input values may be an integer, a string or a list.Integer FunctionsInteger functions take one or two integer values and return an integer value. They can also take a cateseian product as an input corsisting of a pari of two integer valuesString FunctionsString functions take one or two integer or string value and return a stringvalue.List FunctionsList consist of a head (x) and a tail (xs) where the head is the first element in the list and the tail consists of the remaining elements. The list functions take eight the head, the tail or the entire list as the inputRecursive FunctionsRecursive functions take the output from the next iteration of the function as its output. A termination condition must be specified so that the resursive function does not call itself indefinitely. |
Commands.The commands are based on the commands that can be used in functional programming
|
Note that this is a testing release. Please contact me is you find any issues.
Note that this is a testing release. Please contact me if you find any issues.
|