The Artima Developer Community
Sponsored Link

Programming in Scala Forum
thrill.foreach(s => print(s))

1 reply on 1 page. Most recent reply: Nov 30, 2012 6:34 AM by Jose Galeano

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Jose Galeano

Posts: 7
Nickname: galeanoj
Registered: Nov, 2012

thrill.foreach(s => print(s)) Posted: Nov 29, 2012 11:02 AM
Reply to this message Reply
Advertisement
It return to me, in the output (page 88)
Willfilluntil() and not
Willfilluntil
is adding "()" the Nil I suposse at the end.
It is not a good output, is dirty...
Is the Nil replaced with "()" and added to the output?

Greetings to all!
Thanks
José


Jose Galeano

Posts: 7
Nickname: galeanoj
Registered: Nov, 2012

Re: thrill.foreach(s => print(s)) Posted: Nov 30, 2012 6:34 AM
Reply to this message Reply
The solution that I found for now is the following code,

println(thrill.mkString("")),
that code run ok return
Willfilluntil

Flat View: This topic has 1 reply on 1 page
Topic: val vs var Previous Topic   Next Topic Topic: Epub has multiple nulls in place of variables

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use