mirror of
https://github.com/github/semantic.git
synced 2025-01-03 04:51:57 +03:00
Use & instead of flipping $.
This commit is contained in:
parent
853bf4352f
commit
ee80e76c1d
@ -24,7 +24,7 @@ type Algorithm term diff = Ap (AlgorithmF term diff)
|
||||
iterAp :: Functor g => (g a -> a) -> Ap g a -> a
|
||||
iterAp algebra = go
|
||||
where go (Pure a) = a
|
||||
go (Ap wrapped apply) = algebra (go . (<$> apply) . flip ($) <$> wrapped)
|
||||
go (Ap wrapped apply) = algebra (go . (<$> apply) . (&) <$> wrapped)
|
||||
|
||||
|
||||
-- DSL
|
||||
|
Loading…
Reference in New Issue
Block a user