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
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) ?
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
The error was observed in the pdf version but doesn't exist in the ePub version.
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.
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.
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
> 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
@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.
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.
10 matches
Mail list logo