Re: [scala-language] Understanding Java 8 Lambdas an d Streams - Part 1 - λ Calculus, λ Expressions, Syntactic Sugar, 1st Class Functions
"'Philip Schwarz' via scala-language" <[email protected]> Sat, 21 Nov 2015 17:42:37 +0000
| Newsgroups | gmane.comp.lang.scala |
|---|---|
| Message-ID | <CAP+EAU5Lfjd+rSZhzJL5t8=WLGPCthnquz6nD259i_i40pw_DQ@mail.gmail.com> |
Hi Lukas, >you can do it in java, too, with the :: syntax I finally got round to updating the slides: [image: Inline images 1] Philip On 22 March 2015 at 18:12, Philip Schwarz < [email protected]> wrote: > Hi Lukas, > > >higher-order functions that return functions are much less common than > those taking a function > any idea about the proportion of function-returning functions in the > typical functional programmer's arsenal? > > >the apply method is inserted whenever a value is applied to an argument, > the value doesn't need to have a function type > yep > > >the "pure" / "impure" terminology is a bit confusing in this context. > purity is usually used when talking about (the absence of) side effects. > I agree..I came across the idea here: > http://stackoverflow.com/questions/15221659/java-8-lambda-expression-and-first-class-values/15241404#15241404 > > >you can do it in java, too, with the :: syntax > good point! > > Thanks a lot for your input! > > Philip > > > On 22 March 2015 at 09:33, Lukas Rytz <[email protected]> wrote: > >> 265: just a comment: higher-order functions that return functions are >> much less common than those taking a function as argument (canonical >> example: map) >> 269: note that the apply method is inserted whenever a value is applied >> to an argument, the value doesn't need to have a function type. >> 297: the "pure" / "impure" terminology is a bit confusing in this >> context. purity is usually used when talking about (the absence of) side >> effects. >> 302: you can do it in java, too, with the :: syntax ("method reference": >> https://docs.oracle.com/javase/tutorial/java/javaOO/methodreferences.html >> ) >> >> Best, >> Lukas >> >> On Saturday, March 21, 2015 at 1:13:17 PM UTC+1, Philip Schwarz wrote: >>> >>> Hi Stephen, >>> >>> There is a download button for the PDF. >>> >>> There are only 87 Powerpoint slides, but they contain animations to >>> phase in phrases, images, etc. The animations are lost in the PDF version, >>> but can be simulated by increasing the number of slides, which I did where >>> the phasing in mattered. >>> >>> The scala Slides are 265-285 and 289-302 >>> >>> Thanks, >>> >>> Philip >>> >>> On Saturday, 21 March 2015 04:36:25 UTC, Stephen Compall wrote: >>>> >>>> On Sat, 2015-03-14 at 17:06 -0700, Philip Schwarz wrote: >>>> >>>> Hello everyone, >>>> >>>> >>>> >>>> anyone care to comment on the Scala aspects of my talk? >>>> >>>> >>>> >>>> Could you narrow that down a bit? You have a whopping 344 slides, and >>>> it's frightfully tedious to load and search through your presentation, >>>> especially on a slow connection, with your chosen web service vs., say, a >>>> downloadable PDF. >>>> >>>> >>>> >>>> -- >>>> Stephen Compall >>>> "^aCollection allSatisfy: [:each|aCondition]": less is better >>>> >>>> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "scala-language" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/scala-language/z7gpA-GRXVs/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "scala-language" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
Screen Shot 2015-11-21 at 17.39.12.png
(image/png, 735.7 KB) - not displayed