Skip to content
This repository has been archived by the owner on Feb 18, 2019. It is now read-only.

LemonBoy/compactdict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CompactDict

A compact dictionary implementation kindly borrowed from Python.

Features

  • The insertion order is preserved
  • No need to initialize the Dict object before using it
  • More memory efficient for small & medium sized collections
  • Same API as stdlib's Table

Examples

var x = {"foo": 1, "bar": 2}.toDict()
echo x["foo"] # prints 1
for k, v in x.pairs():
  echo k, " = ", v # prints "foo" = 1 and "bar" = 2

About

A compact dictionary implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages