We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f477ba6 commit 2a8e3d9Copy full SHA for 2a8e3d9
src/Data/Text.hs
@@ -1895,14 +1895,14 @@ isSubsequenceOf tf sf
1895
where
1896
subseqOf :: Text -> Text -> Bool
1897
subseqOf t s =
1898
- on f uncons s t
+ on f uncons t s
1899
1900
f :: Maybe (Char, Text) -> Maybe (Char, Text) -> Bool
1901
- f Nothing _ = True
1902
- f _ Nothing = False
1903
- f (Just (sc,ss)) (Just (tc,ts)) =
+ f _ Nothing = True
+ f Nothing _ = False
+ f (Just (tc,ts)) (Just (sc,ss)) =
1904
subseqOf ts $
1905
- if sc == tc
+ if tc == sc
1906
then s
1907
else ss
1908
0 commit comments