mzaks / compact-dict

A fast and compact Dict implementation in Mojo 🔥
MIT License
32 stars 2 forks source link

generic dict problem with latest mojo version #3

Closed dorjeduck closed 7 months ago

dorjeduck commented 7 months ago

For Mojo 24.2.1, I assume the following line of the Dict struct of the generic_dict package,

self.values = List[V](capacity)

needs to change to

self.values = List[V](capacity=capacity)

otherwise capacity pops up as first value . Was wondering where this value 16 comes from in my prog ;-) (using GenericDict[Int])

dorjeduck commented 7 months ago

created a PR for your convenience