To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit e3a94fce authored by vermeul's avatar vermeul
Browse files

Update 07-Built-in_Functions.md

parent e4b4a5c9
......@@ -79,9 +79,9 @@ schema_semper_with_mathml.rng
**Solution**:
* define a filter method
* define a sorting method
* both return a specialised function which do the filtering and sorting
* define a filter method: `my_filter`
* define a sorting method: `my_sort`
* both return a specialised function (hence, **functional programming**) which do the actual filtering and sorting
* use a `sorted()` function (leave file list untouched)
* inside the `sorted()` function, place the `filter()` function
* both `sorted()` and `filter()` can take our pre-defined functions `my_sort` and `my_filter` as arguments.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment