Odd word problem/TrivialCharacterStreamSupportForJ: Difference between revisions
Odd word problem/TrivialCharacterStreamSupportForJ (view source)
Revision as of 11:37, 8 November 2011
, 12 years agouse a verb to initialize 'instream' and start with 'outstream' initialized
mNo edit summary |
(use a verb to initialize 'instream' and start with 'outstream' initialized) |
||
Line 1:
[[../#J|J]] lacks a character stream implementation, so this is a minimal sketch of "get a character" and "put a character" code.
<lang j>
instream=: y
last=: _1
)
getch=: 3 :0
Line 19 ⟶ 14:
outstream=
outch=: 3 :0
|