lua-resty-set
实现集合的并集、差集、交集和对称差集
$ opm get xiangnanscu/lua-resty-set
lua-resty-set
实现集合的并集、差集、交集和对称差集
概要
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)
输出
{1,2,3,4,5}
{3}
{1,2,4,5}
{1,2}
{5,4}
作者
Nan Xiang(@xiangnanscu)
许可证
mit
版本
-
实现集合的并集、差集、交集和对称差集 2022-03-23 10:12:00
-
实现集合的并集、差集、交集和对称差集 2022-03-15 23:41:31
-
实现集合的并集、差集、交集和对称差集 2022-03-15 15:27:44
-
实现集合的并集、差集、交集和对称差集 2022-03-14 08:20:52