Skip to content

Conversation

moigagoo
Copy link

No description provided.

newSeq(result.data, initialSize)

proc toCountTable*[A](keys: openArray[A]): CountTable[A] =
## creates a new count table with every key in `keys` having a count of 1.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the doc comment as well

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Fixed.

@cooldome
Copy link
Member

A bit of discussion here: https://forum.nim-lang.org/t/3432

@Araq
Copy link
Member

Araq commented Dec 27, 2017

This needs to be mentioned in the changelog but is an excellent improvement.

@moigagoo
Copy link
Author

Added the changelog entry: a8b0a8a

@dom96
Copy link
Contributor

dom96 commented Dec 27, 2017

Nice, looks good.

@dom96 dom96 merged commit eea0838 into nim-lang:devel Dec 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants