lua-resty-set
implement union, except, intersect and symmetric except for a set
$ opm get xiangnanscu/lua-resty-set
lua-resty-set
implement union, except, intersect and symmetric except for a set
Synopsis
local a = set{1,2,3}
local b = set{3,4,5}
print(a+b)
print(a*b)
print(a^b)
print(a-b)
print(b-a)
output:
{1,2,3,4,5}
{3}
{1,2,4,5}
{1,2}
{5,4}
Authors
Nan Xiang(@xiangnanscu)
License
mit
Versions
-
implement union, except, intersect and symmetric except for a set 2022-03-23 10:12:00
-
implement union, except, intersect and symmetric except for a set 2022-03-15 23:41:31
-
implement union, except, intersect and symmetric except for a set 2022-03-15 15:27:44
-
implement union, except, intersect and symmetric except for a set 2022-03-14 08:20:52