Renamed the listify methods to be shorter
This commit is contained in:
parent
cdcbebd2ae
commit
2b05480889
|
@ -83,14 +83,14 @@ applyQuery2 qfA qfB = transformSpine ops ()
|
||||||
where
|
where
|
||||||
ops = baseOp `extOpQ` qfA `extOpQ` qfB
|
ops = baseOp `extOpQ` qfA `extOpQ` qfB
|
||||||
|
|
||||||
applyListifyDepth :: PolyplateSpine t (OneOpQ (Maybe s) s) () (Maybe s) => (s -> Bool) -> t -> [s]
|
listifyDepth :: PolyplateSpine t (OneOpQ (Maybe s) s) () (Maybe s) => (s -> Bool) -> t -> [s]
|
||||||
applyListifyDepth qf = catMaybes . flatten . fmap (fromMaybe Nothing) . transformSpine ops ()
|
listifyDepth qf = catMaybes . flatten . fmap (fromMaybe Nothing) . transformSpine ops ()
|
||||||
where
|
where
|
||||||
qf' x = if qf x then Just x else Nothing
|
qf' x = if qf x then Just x else Nothing
|
||||||
ops = baseOp `extOpQ` qf'
|
ops = baseOp `extOpQ` qf'
|
||||||
|
|
||||||
applyListifyBreadth :: PolyplateSpine t (OneOpQ (Maybe s) s) () (Maybe s) => (s -> Bool) -> t -> [s]
|
listifyBreadth :: PolyplateSpine t (OneOpQ (Maybe s) s) () (Maybe s) => (s -> Bool) -> t -> [s]
|
||||||
applyListifyBreadth qf = catMaybes . (concat . levels) . fmap (fromMaybe Nothing) . transformSpine ops ()
|
listifyBreadth qf = catMaybes . (concat . levels) . fmap (fromMaybe Nothing) . transformSpine ops ()
|
||||||
where
|
where
|
||||||
qf' x = if qf x then Just x else Nothing
|
qf' x = if qf x then Just x else Nothing
|
||||||
ops = baseOp `extOpQ` qf'
|
ops = baseOp `extOpQ` qf'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user