Code Snippet: Slow Printing

From Coder Merlin
Revision as of 10:00, 5 December 2018 by Chukwuemeka-tinashe (talk | contribs) (Created page with "import Foundation let string = "For the world is hollow, and I have touched the sky!" for character in string { print(character, terminator:"") fflush(stdout) usl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

import Foundation

let string = "For the world is hollow, and I have touched the sky!" for character in string {

   print(character, terminator:"")
   fflush(stdout)
   usleep(50000)

} print()