until -package:numeric-prelude -package:language-bash -package:clash-prelude -package:hspec -package:base -package:prelude-compat -package:protolude -package:linear-base -package:classy-prelude -package:cabal-install-solver -package:scalpel-core package:utility-ht
repeat action until result fulfills condition
Take all elements until one matches. The matching element is returned,
too. This is the key difference to
takeWhile (not . p). It
holds:
forAllPredicates $ \p xs -> takeUntil p xs == fst (breakAfter p xs)