From: Jim Pryor Date: Sun, 3 Oct 2010 21:11:09 +0000 (-0400) Subject: week4 tweaks X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=commitdiff_plain;h=a4a188627315a688d841a9a622a053b527d3b88a;hp=2195d0c1fa3c064c7090ac25a95cc61ae67bf616 week4 tweaks Signed-off-by: Jim Pryor --- diff --git a/week4.mdwn b/week4.mdwn index 58bd7473..e9a206f0 100644 --- a/week4.mdwn +++ b/week4.mdwn @@ -593,8 +593,8 @@ detail](http://okmij.org/ftp/Streams.html#enumerator-stream). > We could improve this by building lists as left folds when implementing them > as continuation-passing style folds. We'd just replace above: > -> let make_list = \h t. \f z continue_handler abort_handler. -> f h z (\z. t f z continue_handler abort_handler) abort_handler +> let make_list = \h t. \f z continue_handler abort_handler. +> f h z (\z. t f z continue_handler abort_handler) abort_handler > > now `extract_head` should return the leftmost head directly, using its > `abort_handler`: