Course of Raku / Objects, I/O, and exceptions / Input and output / Standard streams / Exercises / Print without a newline
Solution: Print without a newline
Here is a possible solution to the task.
Code
$*OUT.print('a');
$*OUT.print('b');
$*OUT.say('c');🦋 You can find the source code in the file print-without-newline.raku.
Output
abcComments
$*OUT.printwrites its text without adding a newline, soaandbstay on the same line.$*OUT.saywritescand then a newline, finishing the lineabc.