The Artima Developer Community
Sponsored Link

Programming in Scala Forum
Need clarification on closure example page 198

1 reply on 1 page. Most recent reply: Apr 15, 2008 12:49 AM by swaroop belur

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
swaroop belur

Posts: 3
Nickname: sbelur
Registered: Jul, 2005

Need clarification on closure example page 198 Posted: Apr 15, 2008 12:48 AM
Reply to this message Reply
Advertisement
Hi all

Please help me in understanding this concept better.

Page 197/198

1.Wanted to know the difference b/w val onePlus = curriedSum(1)_ and val second = first(1)
I guess both r used to get ref to second function.

2. Also if both are correct, which is "better" to use

Thanks
sbelur


swaroop belur

Posts: 3
Nickname: sbelur
Registered: Jul, 2005

Re: Need clarification on closure example page 198 Posted: Apr 15, 2008 12:49 AM
Reply to this message Reply
Sorry shud have been currying example. My bad

Flat View: This topic has 1 reply on 1 page
Topic: Combinator Parsing Problem Previous Topic   Next Topic Topic: Why are

Sponsored Links



Google
  Web Artima.com   

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