projects
/
matthijs
/
master-project
/
cλash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34cf5a1
)
Replace fst with a lambda in a map.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 13 Apr 2010 14:47:36 +0000
(16:47 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 13 Apr 2010 14:47:36 +0000
(16:47 +0200)
Cλash doesn't like mapping the fst builtin yet, so avoid that for now.
reducer.hs
patch
|
blob
|
history
diff --git
a/reducer.hs
b/reducer.hs
index 925e7f6a73fa87befc62701f6cb4d75ec841d7d6..a565745971366b1829b5040506bcf9868fdc15cb 100644
(file)
--- a/
reducer.hs
+++ b/
reducer.hs
@@
-137,7
+137,7
@@
rippleBuffer ::
rippleBuffer (State buf) (inp, shift) = (State buf', out1, out2)
where
-- Write value
- next_valids = (map
fst
buf) << True
+ next_valids = (map
(\(a, b) -> a)
buf) << True
buf'' = zipWith selects buf next_valids
selects cell next_valid = if (not (fst cell)) && next_valid then
(True, inp)