use of helper functions
Give this one a try later!
1. knowledge domain shift
2. operating on arbitrary sized data
3. use a separate function for each difference between quantities
, signature of filter
Give this one a try later!
(X -> Boolean) (listof X) -> (listof X)
abstraction
Give this one a try later!
encapsulate and generalize
lambda
Give this one a try later!
lambda (parameter) (function body)
- function is only used in one place
- name of function is as clear as func body
- don't have to define it in local
signature for build-list
Give this one a try later!
Give this one a try later!
1. knowledge domain shift
2. operating on arbitrary sized data
3. use a separate function for each difference between quantities
, signature of filter
Give this one a try later!
(X -> Boolean) (listof X) -> (listof X)
abstraction
Give this one a try later!
encapsulate and generalize
lambda
Give this one a try later!
lambda (parameter) (function body)
- function is only used in one place
- name of function is as clear as func body
- don't have to define it in local
signature for build-list
Give this one a try later!