J base library contains a verb stderr which is 1!:2&5 you can try empty@stderr '.'
Mon, 27 Jan 2020, jprogramming написал(а): > 27.01.2020 5:00, Julian Fondren: > > #! /usr/bin/env ijconsole > > dot =: 3 : '''.'' 1!:3 <''/proc/self/fd/1''' > > hardwork =: 3 : 0 > > n =. 0 > > for_i. i.100 do. > > dot'' > > n =. n + 2 | !!8x > > end. > > n > > ) > > echo hardwork'' > > exit 0 > > Great! Thank you! > I slightly modified your function: > > print =: 3 : 'y 1!:3 <''/proc/self/fd/1''' > > Is there any difference in using 1!: 2 and 1!: 3 for the screen? > I have not found. > > Sergey. > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm