Add mul and echo utilities
This commit is contained in:
parent
dcfdb290f7
commit
3b5369fb21
5 changed files with 15 additions and 1 deletions
8
echo.nim
Normal file
8
echo.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import cligen, sequtils
|
||||
|
||||
proc main(strings:seq[string], newline=true) =
|
||||
if newline: writeLine(stdout, strings.foldl(a & b))
|
||||
else: write(stdout, strings.foldl(a & b))
|
||||
flushFile(stdout)
|
||||
|
||||
dispatch(main)
|
||||
Loading…
Add table
Add a link
Reference in a new issue