diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-07-12 17:16:36 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-07-12 23:17:53 +0200 |
commit | f62435e2868f5db15cc2f31300630c8ec873dd58 (patch) | |
tree | 4c48f36fafd1c02b5d65fb92fd257e3bd0c78dc0 /bootstrap | |
parent | c2150d9acece1dcaf54b3183254db4f83a992523 (diff) | |
download | patches-f62435e2868f5db15cc2f31300630c8ec873dd58.tar patches-f62435e2868f5db15cc2f31300630c8ec873dd58.tar.gz |
monads: Fix 'mapm' so that effects happen from left to right.
* guix/monads.scm (mapm): Don't reverse LST, so that items are processed
from left to right. Bind the result of 'foldm' and reverse it.
* tests/monads.scm ("sequence"): Change 'frob' so it performs its side
effect within an 'mlet' body. Adjust call accordingly.
Diffstat (limited to 'bootstrap')
0 files changed, 0 insertions, 0 deletions