Skip to content
Snippets Groups Projects
Commit 3fdc606f authored by Christopher Schankula's avatar Christopher Schankula :earth_africa:
Browse files

fix map to filter on filter slide

parent 5486efbf
No related branches found
No related tags found
1 merge request!12change map to filter on filter slide
......@@ -262,7 +262,7 @@ map (mapSqr, [[1,2], [3, 4, 5, 6], [7, 8]])
\item A filter is a function that takes a predicate and a list and returns the
list of elements that satisfies the predicate
\item Mathematical model: \item
$\mbox{map}: (a \rightarrow Bool) \times [a] \rightarrow [a]$
$\mbox{filter}: (a \rightarrow Bool) \times [a] \rightarrow [a]$
\item Python code: \texttt{filter(func, seq)}
\item Example
\bi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment