2019-07-07 09:38:00 +00:00
|
|
|
import std/tables, ../objects
|
2019-03-12 02:32:08 +00:00
|
|
|
|
|
|
|
template init*[A, B](T: type Table[A, B]): auto = initTable[A, B]()
|
2019-08-02 12:26:08 +00:00
|
|
|
template init*[A, B](T: type TableRef[A, B]): auto = newTable[A, B]()
|
|
|
|
|
|
|
|
template init*[A, B](T: type OrderedTable[A, B]): auto = initOrderedTable[A, B]()
|
|
|
|
template init*[A, B](T: type OrderedTableRef[A, B]): auto = newOrderedTable[A, B]()
|
|
|
|
|
|
|
|
template init*[A](T: type CountTable[A]): auto = initCountTable[A]()
|
|
|
|
template init*[A](T: type CountTableRef[A]): auto = newCountTable[A]()
|
2019-03-12 02:32:08 +00:00
|
|
|
|
|
|
|
export tables, objects
|