Re: How to sort UTF-8 string?

2020-02-10 Thread lagerratrobe
Wow! Amazingly fast and useful feedback. Thank you! I had no idea the unidecode module existed and the _runeCmp()_ example sheds useful light on how things work. Really appreciate the help.

How to sort UTF-8 string?

2020-02-10 Thread lagerratrobe
I'm trying to create sorted lower case representations of strings and am seeing some unexpected behavior. Below is an example of the code I'm using. import unicode import algorithm import strutils import encodings let word = "Ångström" var lower =

Re: Suggestions for optimization?

2020-02-10 Thread lagerratrobe
Answering my own question on this. Using the "-d: release" compile option made all the difference. With that, I was able to reduce the time to: real0m0.286s user0m0.269s sys 0m0.012s Run

Suggestions for optimization?

2020-02-10 Thread lagerratrobe
in the anagram_table if anagram_table[lookup_signature].len == 1: echo strformat.fmt("'{lookup_word}' does not have any anagrams") else: echo anagram_table[lookup_signature] main() Run The "dict.txt" file with dictionary words i

Re: Suggestions for optimization?

2020-02-10 Thread lagerratrobe
Oh! strtabs would have saved some time. Still, it was good to understand how to use the core features. Thank you for the feedback.

Suggestion for reading the docs?

2020-02-13 Thread lagerratrobe
Day 6 of my journey through Nim. I woke up refreshed and eager to understand the parsecsv module. Very quickly I got to the point where I wanted to obtain the index position for a particular value in a sequence. A quick search led me to Stack Overflow

Re: Suggestion for reading the docs?

2020-02-14 Thread lagerratrobe
(Smiles) RTFM, fair enough. The advice on what T and S are in the square brackets was useful though. That's all I'm really after, to understand how to read that stole of proc signature.