mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
dict, lazy_set: Rename del method to delete, for consistency with Map.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
0e657756f1
commit
fe54e73c77
@@ -17,7 +17,7 @@ exports.LazySet = function (vals) {
|
||||
|
||||
Once somebody does an operation
|
||||
where sets are useful, such
|
||||
as has/add/del, we convert it over
|
||||
as has/add/delete, we convert it over
|
||||
to a set for a one-time cost.
|
||||
*/
|
||||
const self = {};
|
||||
@@ -63,10 +63,10 @@ exports.LazySet = function (vals) {
|
||||
self.set.add(val);
|
||||
};
|
||||
|
||||
self.del = function (v) {
|
||||
self.delete = function (v) {
|
||||
make_set();
|
||||
const val = self._clean(v);
|
||||
self.set.delete(val);
|
||||
return self.set.delete(val);
|
||||
};
|
||||
|
||||
self._clean = function (v) {
|
||||
|
||||
Reference in New Issue
Block a user