On Thursday, 16 March 2017 at 16:02:13 UTC, helxi wrote:
1. .length is of type ulong
Either use auto or if needed size_t. As Thedeemon says this is an
alias of ulong on 64-bit and uint on 32.
https://dlang.org/spec/hash-map.html
On Thursday, 16 March 2017 at 16:02:13 UTC, helxi wrote:
I was looking for ways to find the largest common substring
between two given substrings and have learnt
1. .length is of type ulong
Only when compiling to 64 bits. On 32-bit target it's different.
2. writing string[int] will not give
I was looking for ways to find the largest common substring
between two given substrings and have learnt
1. .length is of type ulong
2. writing string[int] will not give me a sorted array
3. ulong cannot be sorted by sorted
What's the trick to sort the associative array by their keys?
Code snip