`import os, strutils proc which*()= for arg in commandLineParams(): # parallelize here for path in (getEnv "PATH").split PathSep: if existsFile path & DirSep & arg: echo path & DirSep & arg break which() `
Run
`import os, strutils proc which*()= for arg in commandLineParams(): # parallelize here for path in (getEnv "PATH").split PathSep: if existsFile path & DirSep & arg: echo path & DirSep & arg break which() `
Run