Skip to content

johnfoconnor/lua_protocols

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

> 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

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

No packages published

Languages