浏览代码

name comment

Billy Barrow 3 周之前
父节点
当前提交
5dfc277db2
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/lib/Enumerable.vala

+ 5 - 0
src/lib/Enumerable.vala

@@ -338,6 +338,11 @@ namespace Invercargill {
         }
 
         // Can't name it union because of C reserved keywords
+        // New names
+        // - union: combine or merge
+        // - intersect: overlap or common
+        // - difference: exclude or subtract
+        // - symmetric difference: mismatch or disjoint
         public virtual Enumerable<T> union(Enumerable<T> other, owned HashDelegate<T>? hash_func = null, owned EqualityDelegate<T>? equal_func = null) {
             return union_by<T>(other, i => i, (owned)hash_func, (owned) equal_func);
         }