1.2.functions Recursion
1.2.functions Recursion
01 Functions as values
02 Methodology
03 Recursion + Induction
04 Pattern Matching
What are functions in Scheme?
Execute any function you’ve learned without the parentheses. e.g.
ABSTRACTION, let’s think on the following problem, tell the logic of the
solution
ABSTRACTION, let’s think on the following problem, tell the logic of the
solution
Define, using foldl a function (reject lst pred) which returns the list of the elements of
lst that do not satisfy the condition pred.
When a function receives another one as argument, is called higher order function
Functions that return functions
So, with anonymous functions we can do something awfully powerful, define functions that create
functions.
So to demonstrate that P(n) is valid for any n (where n is a natural number). You
need to prove that:
● Parsing
● Expressions
● Our first little language
References