Confirmed users
596
edits
| m (→Operators) | m (→Operators) | ||
| Line 179: | Line 179: | ||
| All operators observe the original collections they are constructed from, and adapt the result based on changes, and notify any observers that are registered on the operator result collection. | All operators observe the original collections they are constructed from, and adapt the result based on changes, and notify any observers that are registered on the operator result collection. | ||
|    * + | |||
|     * Returns a collection that contains all values from coll1 and coll2. |     * Returns a collection that contains all values from coll1 and coll2. | ||
|     * If the same item is in both coll1 and coll2, it will be added only once. |     * If the same item is in both coll1 and coll2, it will be added only once. | ||
| Line 191: | Line 192: | ||
|    TODO rename? mergeColl |    TODO rename? mergeColl | ||
|    * + | |||
|     * Returns a collection that contains all values from coll1 and coll2. |     * Returns a collection that contains all values from coll1 and coll2. | ||
|     * If the same item is in both coll1 and coll2, it will be added twice. |     * If the same item is in both coll1 and coll2, it will be added twice. | ||
|    * The result is simply coll2 is simply appended to coll1. | |||
|     * |     * | ||
|     * @param coll1 {Collection} |     * @param coll1 {Collection} | ||
| Line 201: | Line 204: | ||
|    TODO rename? concatColl or appendColl |    TODO rename? concatColl or appendColl | ||
|    * - | |||
|     * Returns a collection that contains all values from collBase, |     * Returns a collection that contains all values from collBase, | ||
|     * apart from those in collSubtract. |     * apart from those in collSubtract. | ||
| Line 212: | Line 216: | ||
|    function subtractColl(collBase, collSubtract) |    function subtractColl(collBase, collSubtract) | ||
|    * & | |||
|     * Returns a collection that contains all values that are contained |     * Returns a collection that contains all values that are contained | ||
|     * in *both* coll1 and coll1. |     * in *both* coll1 and coll1. | ||