Commit f88caade authored by me's avatar me
Browse files

improved linebreak for lambda code example

parent 48219c53
......@@ -2,7 +2,7 @@
\begin{lstlisting}[caption={Compose-Funktion die zwei Funktionen verknüpft ausführt: $f(g(x))$},label=lst:compose_functions]
template<typename A,typename B, typename C>
std::function<C(A)> compose(std::function<C(B)> f,std::function<B(A)> g){
std::function<C(A)> compose(std::function<C(B)> f, std::function<B(A)> g){
// lambda
return [f,g](A x){return f(g(x));};
Supports Markdown
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