File tree Expand file tree Collapse file tree 4 files changed +141
-109
lines changed Expand file tree Collapse file tree 4 files changed +141
-109
lines changed Original file line number Diff line number Diff line change @@ -74,32 +74,29 @@ module Data.IntMap.Lazy (
74
74
IntMap (.. ), Key -- instance Eq,Show
75
75
#endif
76
76
77
- -- * Operators
78
- , (!) , (!?) , (\\)
79
-
80
- -- * Query
81
- , IM. null
82
- , size
83
- , member
84
- , notMember
85
- , IM. lookup
86
- , findWithDefault
87
- , lookupLT
88
- , lookupGT
89
- , lookupLE
90
- , lookupGE
91
-
92
77
-- * Construction
93
78
, empty
94
79
, singleton
80
+ , fromSet
81
+
82
+ -- ** From Unordered Lists
83
+ , fromList
84
+ , fromListWith
85
+ , fromListWithKey
86
+
87
+ -- ** From Ascending Lists
88
+ , fromAscList
89
+ , fromAscListWith
90
+ , fromAscListWithKey
91
+ , fromDistinctAscList
95
92
96
- -- ** Insertion
93
+ -- * Insertion
97
94
, insert
98
95
, insertWith
99
96
, insertWithKey
100
97
, insertLookupWithKey
101
98
102
- -- ** Delete \/Update
99
+ -- * Deletion \/Update
103
100
, delete
104
101
, adjust
105
102
, adjustWithKey
@@ -109,6 +106,23 @@ module Data.IntMap.Lazy (
109
106
, alter
110
107
, alterF
111
108
109
+ -- * Query
110
+ -- ** Lookup
111
+ , IM. lookup
112
+ , (!?)
113
+ , (!)
114
+ , findWithDefault
115
+ , member
116
+ , notMember
117
+ , lookupLT
118
+ , lookupGT
119
+ , lookupLE
120
+ , lookupGE
121
+
122
+ -- ** Size
123
+ , IM. null
124
+ , size
125
+
112
126
-- * Combine
113
127
114
128
-- ** Union
@@ -120,6 +134,7 @@ module Data.IntMap.Lazy (
120
134
121
135
-- ** Difference
122
136
, difference
137
+ , (\\)
123
138
, differenceWith
124
139
, differenceWithKey
125
140
@@ -161,21 +176,13 @@ module Data.IntMap.Lazy (
161
176
, keys
162
177
, assocs
163
178
, keysSet
164
- , fromSet
165
179
166
180
-- ** Lists
167
181
, toList
168
- , fromList
169
- , fromListWith
170
- , fromListWithKey
171
182
172
183
-- ** Ordered lists
173
184
, toAscList
174
185
, toDescList
175
- , fromAscList
176
- , fromAscListWith
177
- , fromAscListWithKey
178
- , fromDistinctAscList
179
186
180
187
-- * Filter
181
188
, IM. filter
Original file line number Diff line number Diff line change @@ -93,32 +93,29 @@ module Data.IntMap.Strict (
93
93
IntMap (.. ), Key -- instance Eq,Show
94
94
#endif
95
95
96
- -- * Operators
97
- , (!) , (!?) , (\\)
98
-
99
- -- * Query
100
- , null
101
- , size
102
- , member
103
- , notMember
104
- , lookup
105
- , findWithDefault
106
- , lookupLT
107
- , lookupGT
108
- , lookupLE
109
- , lookupGE
110
-
111
96
-- * Construction
112
97
, empty
113
98
, singleton
99
+ , fromSet
100
+
101
+ -- ** From Unordered Lists
102
+ , fromList
103
+ , fromListWith
104
+ , fromListWithKey
105
+
106
+ -- ** From Ascending Lists
107
+ , fromAscList
108
+ , fromAscListWith
109
+ , fromAscListWithKey
110
+ , fromDistinctAscList
114
111
115
- -- ** Insertion
112
+ -- * Insertion
116
113
, insert
117
114
, insertWith
118
115
, insertWithKey
119
116
, insertLookupWithKey
120
117
121
- -- ** Delete \/Update
118
+ -- * Deletion \/Update
122
119
, delete
123
120
, adjust
124
121
, adjustWithKey
@@ -128,6 +125,23 @@ module Data.IntMap.Strict (
128
125
, alter
129
126
, alterF
130
127
128
+ -- * Query
129
+ -- ** Lookup
130
+ , lookup
131
+ , (!?)
132
+ , (!)
133
+ , findWithDefault
134
+ , member
135
+ , notMember
136
+ , lookupLT
137
+ , lookupGT
138
+ , lookupLE
139
+ , lookupGE
140
+
141
+ -- ** Size
142
+ , null
143
+ , size
144
+
131
145
-- * Combine
132
146
133
147
-- ** Union
@@ -139,6 +153,7 @@ module Data.IntMap.Strict (
139
153
140
154
-- ** Difference
141
155
, difference
156
+ , (\\)
142
157
, differenceWith
143
158
, differenceWithKey
144
159
@@ -180,21 +195,13 @@ module Data.IntMap.Strict (
180
195
, keys
181
196
, assocs
182
197
, keysSet
183
- , fromSet
184
198
185
199
-- ** Lists
186
200
, toList
187
- , fromList
188
- , fromListWith
189
- , fromListWithKey
190
201
191
- -- ** Ordered lists
202
+ -- ** Ordered lists
192
203
, toAscList
193
204
, toDescList
194
- , fromAscList
195
- , fromAscListWith
196
- , fromAscListWithKey
197
- , fromDistinctAscList
198
205
199
206
-- * Filter
200
207
, filter
Original file line number Diff line number Diff line change @@ -88,32 +88,35 @@ module Data.Map.Lazy (
88
88
-- * Map type
89
89
Map -- instance Eq,Show,Read
90
90
91
- -- * Operators
92
- , (!) , (!?) , (\\)
93
-
94
- -- * Query
95
- , null
96
- , size
97
- , member
98
- , notMember
99
- , lookup
100
- , findWithDefault
101
- , lookupLT
102
- , lookupGT
103
- , lookupLE
104
- , lookupGE
105
-
106
91
-- * Construction
107
92
, empty
108
93
, singleton
94
+ , fromSet
109
95
110
- -- ** Insertion
96
+ -- ** From Unordered Lists
97
+ , fromList
98
+ , fromListWith
99
+ , fromListWithKey
100
+
101
+ -- ** From Ascending Lists
102
+ , fromAscList
103
+ , fromAscListWith
104
+ , fromAscListWithKey
105
+ , fromDistinctAscList
106
+
107
+ -- ** From Descending Lists
108
+ , fromDescList
109
+ , fromDescListWith
110
+ , fromDescListWithKey
111
+ , fromDistinctDescList
112
+
113
+ -- * Insertion
111
114
, insert
112
115
, insertWith
113
116
, insertWithKey
114
117
, insertLookupWithKey
115
118
116
- -- ** Delete \/Update
119
+ -- * Deletion \/Update
117
120
, delete
118
121
, adjust
119
122
, adjustWithKey
@@ -123,6 +126,23 @@ module Data.Map.Lazy (
123
126
, alter
124
127
, alterF
125
128
129
+ -- * Query
130
+ -- ** Lookup
131
+ , lookup
132
+ , (!?)
133
+ , (!)
134
+ , findWithDefault
135
+ , member
136
+ , notMember
137
+ , lookupLT
138
+ , lookupGT
139
+ , lookupLE
140
+ , lookupGE
141
+
142
+ -- ** Size
143
+ , null
144
+ , size
145
+
126
146
-- * Combine
127
147
128
148
-- ** Union
@@ -134,6 +154,7 @@ module Data.Map.Lazy (
134
154
135
155
-- ** Difference
136
156
, difference
157
+ , (\\)
137
158
, differenceWith
138
159
, differenceWithKey
139
160
@@ -180,25 +201,13 @@ module Data.Map.Lazy (
180
201
, keys
181
202
, assocs
182
203
, keysSet
183
- , fromSet
184
204
185
205
-- ** Lists
186
206
, toList
187
- , fromList
188
- , fromListWith
189
- , fromListWithKey
190
207
191
208
-- ** Ordered lists
192
209
, toAscList
193
210
, toDescList
194
- , fromAscList
195
- , fromAscListWith
196
- , fromAscListWithKey
197
- , fromDistinctAscList
198
- , fromDescList
199
- , fromDescListWith
200
- , fromDescListWithKey
201
- , fromDistinctDescList
202
211
203
212
-- * Filter
204
213
, filter
You can’t perform that action at this time.
0 commit comments