Re: Any future for true associative arrays?

2017-09-03 Thread Arrrrrrrrr
Yeah, it barely takes a few modifications to [run the code](https://glot.io/snippets/etacx9hd36): import strutils, tables var arr = split("Blue Blue Red Green", " ") # list of words uniqarr = initTable[string, int]() # array to hold unique words

Re: Any future for true associative arrays?

2017-09-03 Thread mratsim
Can't you use the [sets module](https://nim-lang.org/docs/sets.html) or maybe the [tables module](https://nim-lang.org/docs/tables.html) ?

Any future for true associative arrays?

2017-09-03 Thread stbalbach
I use associative arrays regularly in Lua and awk but Nim doesn't really have the same. Is there a roadmap or is it too angular to implement? I'd like to be able to do something like this (pseudo-code to unique a list of words): import strutils var arr = split("Blue

Re: Nim in Action print book is 50% off today

2017-09-03 Thread jzakiya
The error was observed in the pdf version but doesn't exist in the ePub version.

Re: Nim in Action print book is 50% off today

2017-09-03 Thread jzakiya
Is there an errata page for the book on the website, or somewhere. I found a few typos|errors in the book for correction, e.g. the data in Table 2.2 on page 27. The ranges for uint[8|16|32] have a mistaken '0' on the end of the 'range' numbers for those types.

Re: Nim in Action print book is 50% off today

2017-09-03 Thread jzakiya
That's what I assumed, when I got combo 2). I assumed the pBook was the printed book, and didn't know the difference between an eBook and pdf|ePub|kindle, so I made sure I got the pdf and ePub versions, since I have various readers for them.

Re: Nim newbie request/challenge

2017-09-03 Thread jacmoe
I agree - Nim is a community driven project, like many open source projects, and it gets better only if you scratch your own itch. Small improvements to the documentation is, like dom96 says, a perfect way to start contributing. [Edit] I agree that not everyone is command-line ninjas, and I

Re: Nim newbie request/challenge

2017-09-03 Thread dom96
> It's these type of little things that cause unnecessary frustrations and shy > people away from using new things. > > Please think about the things that could potentially go wrong, then create > instructions and documentation that will prevent them. We do try, but we don't have the time to

Re: Nim in Action print book is 50% off today

2017-09-03 Thread dom96
@jzakiya I'm not sure what you're asking. The print book is not included in 2). You can either buy the pBook (with eBook) or just the eBook on its own.

Re: Nim in Action print book is 50% off today

2017-09-03 Thread pgmf
Thanks Dom96. I bought the ebook version from Manning couple of weeks ago. I am going to start reading/learning 'Nim in Action' once I finish the online tutorial. I am really looking forward for this.