Re: what [T] means in nim?

2020-03-04 Thread hany33
Thanks

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]()

Re: Module queues is not working? Is it deprecated?

2020-03-03 Thread hany33
Thanks

Re: Module queues is not working? Is it deprecated?

2020-03-03 Thread hany33
import queues var q = initQueue[int]() q.add(8) q.add(18) Error: cannot open file: queues

Module queues is not working? Is it deprecated?

2020-03-03 Thread hany33
Is it deprecated?

How to create adjacency list in Nim?

2020-03-02 Thread hany33
How to create adjacency list in Nim?