Merge branch 'devel' into newasync
This commit is contained in:
commit
b3a0906619
15 changed files with 190 additions and 97 deletions
|
|
@ -241,3 +241,7 @@ proc `<=`*[A](s, t: TSet[A]): bool =
|
|||
|
||||
proc `==`*[A](s, t: TSet[A]): bool =
|
||||
s.counter == t.counter and s <= t
|
||||
|
||||
proc map*[A, B](data: TSet[A], op: proc (x: A): B {.closure.}): TSet[B] =
|
||||
result = initSet[B]()
|
||||
for item in data: result.incl(op(item))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue