Re: what [T] means in nim?

2020-03-04 Thread hany33
Thanks

Re: what [T] means in nim?

2020-03-04 Thread Stefan_Salewski
See official tutorial part 2: [https://nim-lang.org/docs/tut2.html#generics](https://nim-lang.org/docs/tut2.html#generics)

what [T] means in nim?

2020-03-03 Thread hany33
type GraphMap[T] = ref object > keyToNode: Table[T, Node] > > nodeToKey: Table[Node, T] proc newGraphMap[T](): GraphMap[T] = result.new() result.keyToNode = initTable[T, Node]() result.nodeToKey = initTable[Node, T]()