> Set = require 'set'
> List = require 'list'
> Enum = require 'enum'
> print(Enum.count(Set.new()))
0
> print(Enum.count(List.new()))
0
> s = Set.new()
> s:insert("a element")
> s:insert("another")
> print(Enum.count(s))
2
> s:remove("another")
> print(Enum.count(s))
1
-
Notifications
You must be signed in to change notification settings - Fork 0
elixir style protocols for lua. Implementation inspiration from http://rtsisyk.github.io/luafun/under_the_hood.html
johnfoconnor/lua_protocols
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
elixir style protocols for lua. Implementation inspiration from http://rtsisyk.github.io/luafun/under_the_hood.html
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published