mirror of
https://github.com/byteverse/colonnade.git
synced 2026-09-02 01:13:51 +02:00
commit
e0a0f66a43
@ -216,12 +216,7 @@ replaceWhen ::
|
|||||||
-> (a -> Bool) -- ^ Row predicate
|
-> (a -> Bool) -- ^ Row predicate
|
||||||
-> Colonnade f a c -- ^ Original 'Colonnade'
|
-> Colonnade f a c -- ^ Original 'Colonnade'
|
||||||
-> Colonnade f a c
|
-> Colonnade f a c
|
||||||
replaceWhen newContent p (E.Colonnade v) = E.Colonnade
|
replaceWhen = modifyWhen . const
|
||||||
( Vector.map
|
|
||||||
(\(E.OneColonnade h encode) -> E.OneColonnade h $ \a ->
|
|
||||||
if p a then newContent else encode a
|
|
||||||
) v
|
|
||||||
)
|
|
||||||
|
|
||||||
-- | Augment a 'Colonnade' with a header spans over all of the
|
-- | Augment a 'Colonnade' with a header spans over all of the
|
||||||
-- existing headers. This is best demonstrated by example.
|
-- existing headers. This is best demonstrated by example.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user