Advertise here

Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

terminate \n in swift print()

dickthedevdickthedev Posts: 214Registered Users @ @
Hello, in Swift, print() terminates with \n by default, is there any way to change this other than passing terminator: " " and make it the default? Thanks

I am new to Swift :)


  • Duncan CDuncan C Posts: 9,116Tutorial Authors, Registered Users @ @ @ @ @ @ @
    The terminator parameter in
    is the way your change the terminator character. That's what it's for.
    Duncan C

    Animated GIF created with Face Dancer, available for free in the app store.

    I'm available for one-on-one help at CodeMentor
Sign In or Register to comment.