The Artima Developer Community
Sponsored Link

Programming in Scala Forum
Chapter 11, page 232, precedence method

1 reply on 1 page. Most recent reply: Jan 29, 2008 6:19 PM by Eric Willigers

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
Javier Diaz Soto

Posts: 29
Nickname: javierbds
Registered: Sep, 2005

Chapter 11, page 232, precedence method Posted: Jan 22, 2008 5:23 AM
Reply to this message Reply
Advertisement
Chapter 11, page 232, precedence method

Does anybody else cannot at compiling this line:

op <- opGroups(i).elements

(Iterator vs Iterable[?])

Does anybody know how to fix it?


Eric Willigers

Posts: 8
Nickname: ewilligers
Registered: Dec, 2007

Re: Chapter 11, page 232, precedence method Posted: Jan 29, 2008 6:19 PM
Reply to this message Reply
> Chapter 11, page 232, precedence method
>
> Does anybody else cannot at compiling this line:
>
> op <- opGroups(i).elements


> Does anybody know how to fix it?

The line doesn't compile for me either.
Just use
op <- opGroups(i)

opGroups(i) returns a Set, which is an Iterable.

Flat View: This topic has 1 reply on 1 page
Topic: Functions and Closures: withPrintWriter Previous Topic   Next Topic Topic: Possible mistakes in first 4 chapters

Sponsored Links



Google
  Web Artima.com   

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