pub const BYNK_SET_SRC: &str = "commons bynk.set {\n\t---\n\tDeprecated: use `a.union(b)`. Every element of `a`, then every element of\n\t`b` not already in `a`, in that order.\n\t---\n\tfn union[T: Key](a: Set[T], b: Set[T]) -> Set[T] {\n\t\ta.union(b)\n\t}\n\n\t---\n\tDeprecated: use `a.intersect(b)`. The elements of `a` that are also in `b`,\n\tin `a`\'s order.\n\t---\n\tfn intersect[T: Key](a: Set[T], b: Set[T]) -> Set[T] {\n\t\ta.intersect(b)\n\t}\n\n\t---\n\tDeprecated: use `a.difference(b)`. The elements of `a` that are not in `b`,\n\tin `a`\'s order.\n\t---\n\tfn difference[T: Key](a: Set[T], b: Set[T]) -> Set[T] {\n\t\ta.difference(b)\n\t}\n\n\t---\n\tDeprecated: use `a.isSubsetOf(b)`. Whether every element of `a` is in `b`.\n\t---\n\tfn isSubsetOf[T: Key](a: Set[T], b: Set[T]) -> Bool {\n\t\ta.isSubsetOf(b)\n\t}\n\n\t---\n\tDeprecated: use `s.filter(p)`. The elements of `s` for which `p` holds, in\n\torder. Named apart from `bynk.list`\'s `filter`, so a unit can use both\n\tcommons.\n\t---\n\tfn filterSet[T: Key](s: Set[T], p: T -> Bool) -> Set[T] {\n\t\ts.filter(p)\n\t}\n\n\t---\n\tDeprecated: use `s.map(f)`. `f` applied to each element of `s`, in order.\n\tElements that map to the same value collapse to one, at the first one\'s\n\tposition; the result type must itself be value-keyable. Named apart from\n\t`bynk.list`\'s `map`, so a unit can use both commons.\n\t---\n\tfn mapSet[A: Key, B: Key](s: Set[A], f: A -> B) -> Set[B] {\n\t\ts.map(f)\n\t}\n}\n";Expand description
bynk.set (standard-library K6a, #2596) — Bynk-written combinators over
the built-in Set kernel (length, contains, insert, remove,
toList, Set.of): union, intersect, difference, isSubsetOf,
filter, map.