Does a nim library contain an argsort implementation or wrapper?
I am looking for a version of argsort, such as exists in numpy or in fortran Is there an implementation of argsort in nim ... or accessible to nim in some library? It seems a bit surprising that its missing. UPDATE The following seems to work for argsort: proc argsort[T](a : T) : seq[int] = result = toSeq(0..a.len - 1) sort(result, proc (i, j: int): int = cmp(a[i], a[j])) Presumably, though, it could be more efficient written natively and avoiding the function pointer....
MD5 on an array, array[0..63, uint8] to cstring conversion
Converting a seq[char] to string
Nim: On mac, cannot open standard import
How to compare two typedesc in a template for equality
Is there a “default” file name that can be used for importing modules?
Unable to get StringStream created from marshal to output the data
Initialize a seq of seqs
How to change Nim compiler output file location and name
Compile-time Call Count in Nim
How To Convert Slice To Sequence?
Cannonical way to do circular dependency in Nim
toSeq(some_string) Type Mismatch
Why is there a warning not to use system.cmp[string] for Nim string comparison
What's the the best way to get the current operating system?
How to get the type of a value as string?
Loop results to array