This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: Typing question follow up

No replies
Job Honig
Joined: 2009-08-17,
User offline. Last seen 42 years 45 weeks ago.

> the function if (_ > 0) Positive else if (_ < 0) takes TWO parameters. each
> _ is one.

AH. So that was the real problem... Underscores take some getting used to.
Thanks!

Job

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland