Implement takeWhileEnd
authorPaul Capron <paul@fragara.com>
Wed, 7 Oct 2015 22:18:11 +0000 (00:18 +0200)
committerPaul Capron <paul@fragara.com>
Wed, 7 Oct 2015 22:18:11 +0000 (00:18 +0200)
commit7534f3cc81461468d74c587cb36cf5a2ed5d2a19
tree17f1c2f069e4099f8675aaf03fec72c0ac1dc1b4
parent93e3705127dc9a01c5216d7462877a27d29f8f01
Implement takeWhileEnd

This commit adds a takeWhileEnd function to both Data.Text and Data.Text.Lazy,
and related QuickCheck properties.

takeWhileEnd, applied to a predicate `p' and a Text `t', returns the longest
suffix (possibly empty) of elements in `t' that satisfy `p'.
Data/Text.hs
Data/Text/Lazy.hs
tests/Tests/Properties.hs