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: 213Registered 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 :)

Replies

  • Duncan CDuncan C Posts: 9,114Tutorial Authors, Registered Users @ @ @ @ @ @ @
    The terminator parameter in
    print(_:terminator:)
    
    is the way your change the terminator character. That's what it's for.
    Regards,
    Duncan C
    WareTo

    widehead.gif
    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.