File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1041,8 +1041,9 @@ replicateChar n c = unstream (S.replicateCharI n (safe c))
1041
1041
-- 'Text' from a seed value. The function takes the element and
1042
1042
-- returns 'Nothing' if it is done producing the 'Text', otherwise
1043
1043
-- 'Just' @(a,b)@. In this case, @a@ is the next 'Char' in the
1044
- -- string, and @b@ is the seed value for further production. Performs
1045
- -- replacement on invalid scalar values.
1044
+ -- string, and @b@ is the seed value for further production.
1045
+ -- Subject to fusion.
1046
+ -- Performs replacement on invalid scalar values.
1046
1047
unfoldr :: (a -> Maybe (Char ,a )) -> a -> Text
1047
1048
unfoldr f s = unstream (S. unfoldr (firstf safe . f) s)
1048
1049
{-# INLINE unfoldr #-}
@@ -1052,6 +1053,7 @@ unfoldr f s = unstream (S.unfoldr (firstf safe . f) s)
1052
1053
-- first argument to 'unfoldrN'. This function is more efficient than
1053
1054
-- 'unfoldr' when the maximum length of the result is known and
1054
1055
-- correct, otherwise its performance is similar to 'unfoldr'.
1056
+ -- Subject to fusion.
1055
1057
-- Performs replacement on invalid scalar values.
1056
1058
unfoldrN :: Int64 -> (a -> Maybe (Char ,a )) -> a -> Text
1057
1059
unfoldrN n f s = unstream (S. unfoldrN n (firstf safe . f) s)
You can’t perform that action at this time.
0 commit comments