Skip to content

Commit

Permalink
Convert parallel list comprehension to zipWith3, #536.
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Apr 22, 2021
1 parent 3622a86 commit 2041002
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions lang-haskell/mask/library/Flight/Mask/Tag/Double.hs
Original file line number Diff line number Diff line change
Expand Up @@ -286,16 +286,15 @@ instance GeoTagInterpolate Double a => GeoTag Double a where
yss' :: [[Crossing]]
yss' = (fmap . fmap) unOrdCrossing yss

selected =
SelectedCrossings
[
let prover = proveCrossing timecheck mark0 fixes
in selectZoneCross prover selector ys

| timecheck <- timechecks
| selector <- selectors
| ys <- yss'
]
selected = SelectedCrossings $
zipWith3
(\timecheck selector ys ->
let prover = proveCrossing timecheck mark0 fixes
in selectZoneCross prover selector ys)

timechecks
selectors
yss'

fs =
(\x ->
Expand Down

0 comments on commit 2041002

Please sign in to comment.