File tree Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -1079,7 +1079,7 @@ differenceWithKey f m1 m2
1079
1079
-- | /O(n+m)/. Remove all the keys in a given set from a map.
1080
1080
--
1081
1081
-- @
1082
- -- m `withoutKeys` s = 'filterWithKey' (\k _ -> k `' IntSet.notMember' ` s) m
1082
+ -- m \ `withoutKeys\ ` s = 'filterWithKey' (\k _ -> k `` IntSet.notMember` ` s) m
1083
1083
-- @
1084
1084
--
1085
1085
-- @since 0.5.8
@@ -1157,7 +1157,7 @@ intersection m1 m2
1157
1157
-- | /O(n+m)/. The restriction of a map to the keys in a set.
1158
1158
--
1159
1159
-- @
1160
- -- m `restrictKeys` s = 'filterWithKey' (\k _ -> k `' IntSet.member' ` s) m
1160
+ -- m \ `restrictKeys\ ` s = 'filterWithKey' (\k _ -> k `` IntSet.member` ` s) m
1161
1161
-- @
1162
1162
--
1163
1163
-- @since 0.5.8
Original file line number Diff line number Diff line change @@ -643,7 +643,7 @@ subsetCmp Nil Nil = EQ
643
643
subsetCmp Nil _ = LT
644
644
645
645
-- | /O(n+m)/. Is this a subset?
646
- -- @(s1 `isSubsetOf` s2)@ tells whether @s1@ is a subset of @s2@.
646
+ -- @(s1 \ `isSubsetOf\ ` s2)@ tells whether @s1@ is a subset of @s2@.
647
647
648
648
isSubsetOf :: IntSet -> IntSet -> Bool
649
649
isSubsetOf t1@ (Bin p1 m1 l1 r1) (Bin p2 m2 l2 r2)
Original file line number Diff line number Diff line change @@ -1899,8 +1899,8 @@ difference t1 (Bin _ k _ l2 r2) = case split k t1 of
1899
1899
-- | /O(m*log(n\/m + 1)), m <= n/. Remove all keys in a 'Set' from a 'Map'.
1900
1900
--
1901
1901
-- @
1902
- -- m `' withoutKeys' ` s = 'filterWithKey' (\k _ -> k `' Set.notMember' ` s) m
1903
- -- m `' withoutKeys' ` s = m `' difference' ` 'fromSet' (const ()) s
1902
+ -- m \` withoutKeys\ ` s = 'filterWithKey' (\k _ -> k `` Set.notMember` ` s) m
1903
+ -- m \` withoutKeys\ ` s = m `` difference` ` 'fromSet' (const ()) s
1904
1904
-- @
1905
1905
--
1906
1906
-- @since 0.5.8
@@ -1981,8 +1981,8 @@ intersection t1@(Bin _ k x l1 r1) t2
1981
1981
-- found in a 'Set'.
1982
1982
--
1983
1983
-- @
1984
- -- m `' restrictKeys' ` s = 'filterWithKey' (\k _ -> k `' Set.member' ` s) m
1985
- -- m `' restrictKeys' ` s = m `' intersect' 'fromSet' (const ()) s
1984
+ -- m \` restrictKeys\ ` s = 'filterWithKey' (\k _ -> k `` Set.member` ` s) m
1985
+ -- m \` restrictKeys\ ` s = m `` intersect`` 'fromSet' (const ()) s
1986
1986
-- @
1987
1987
--
1988
1988
-- @since 0.5.8
Original file line number Diff line number Diff line change @@ -1379,7 +1379,7 @@ mapWithKey f (Bin sx kx x l r) =
1379
1379
#endif
1380
1380
1381
1381
-- | /O(n)/.
1382
- -- @'traverseWithKey' f m == 'fromList' <$> 'traverse' (\(k, v) -> (\v' -> v' `seq` (k,v')) <$> f k v) ('toList' m)@
1382
+ -- @'traverseWithKey' f m == 'fromList' <$> 'traverse' (\(k, v) -> (\v' -> v' \ `seq\ ` (k,v')) <$> f k v) ('toList' m)@
1383
1383
-- That is, it behaves much like a regular 'traverse' except that the traversing
1384
1384
-- function also has access to the key associated with a value and the values are
1385
1385
-- forced before they are installed in the result map.
Original file line number Diff line number Diff line change 65
65
--
66
66
-- but
67
67
--
68
- -- @ (1 :<| undefined) \` index\ ` 0 = undefined @
68
+ -- @ (1 :<| undefined) `` index` ` 0 = undefined @
69
69
--
70
70
-- Sequences may also be compared to immutable
71
71
-- [arrays](https://hackage.haskell.org/package/array)
Original file line number Diff line number Diff line change @@ -4358,7 +4358,7 @@ instance MonadZip Seq where
4358
4358
-- | Unzip a sequence of pairs.
4359
4359
--
4360
4360
-- @
4361
- -- unzip ps = ps `' seq' ` ('fmap' 'fst' ps) ('fmap' 'snd' ps)
4361
+ -- unzip ps = ps `` seq` ` ('fmap' 'fst' ps) ('fmap' 'snd' ps)
4362
4362
-- @
4363
4363
--
4364
4364
-- Example:
Original file line number Diff line number Diff line change @@ -600,7 +600,7 @@ isProperSubsetOf s1 s2
600
600
601
601
602
602
-- | /O(n+m)/. Is this a subset?
603
- -- @(s1 `isSubsetOf` s2)@ tells whether @s1@ is a subset of @s2@.
603
+ -- @(s1 \ `isSubsetOf\ ` s2)@ tells whether @s1@ is a subset of @s2@.
604
604
isSubsetOf :: Ord a => Set a -> Set a -> Bool
605
605
isSubsetOf t1 t2
606
606
= (size t1 <= size t2) && (isSubsetOfX t1 t2)
@@ -1691,7 +1691,7 @@ splitRoot orig =
1691
1691
-- | Calculate the power set of a set: the set of all its subsets.
1692
1692
--
1693
1693
-- @
1694
- -- t `member` powerSet s == t `isSubsetOf` s
1694
+ -- t `` member`` powerSet s == t `` isSubsetOf` ` s
1695
1695
-- @
1696
1696
--
1697
1697
-- Example:
@@ -1746,7 +1746,7 @@ instance Monoid (MergeSet a) where
1746
1746
1747
1747
-- | Calculate the disjoin union of two sets.
1748
1748
--
1749
- -- @ disjointUnion xs ys = map Left xs `union` map Right ys @
1749
+ -- @ disjointUnion xs ys = map Left xs `` union` ` map Right ys @
1750
1750
--
1751
1751
-- Example:
1752
1752
--
You can’t perform that action at this time.
0 commit comments