3 ms·
OP apparently wants to process an array of lines, not just each line separately.
by DarkWiiPlayer 8y ago
OP apparently wants to process an array of lines, not just each line separately.
- karmakaze 8y agoWe need to be using lazy coolections.
- dragonwriter 8y agoSo: execute(STDIN.each_line, code) which gives you a lazy enumerator, in place of: execute(STDIN.readlines, code) which gives you an Array.