import sugar
    let seto = {1, 2, 3}
    let seqo = sugar.collect(newSeq):
      for item in seto: $item
    echo seqo
    
    Run
    
    
    let seto = {1, 2, 3}
    let seqo2 = block:
      var lst: seq[string]
      for item in seto: lst.add($item)
      lst
    echo seqo2
    
    Run

Theres also `sequtils.toSeq`. Depending the use case it can be improved for 
sure.

On Nim "methods" are like free floating functions, I dont think is possible to 
list all of them, because you can create custom ones, and theres functions that 
can take `any` or `T`, return `auto`, etc.

If you want like an index to see which functions are on stdlib available, then 
CTRL+F on 
[https://nim-lang.github.io/Nim/theindex.html](https://nim-lang.github.io/Nim/theindex.html)

Reply via email to