• Post Reply Bookmark Topic Watch Topic
  • New Topic

Simple Intro to Partially Applied Functions in Scala  RSS feed

 
Scott Shipp
Ranch Hand
Posts: 223
12
Eclipse IDE IntelliJ IDE Java Scala Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you've ever wondered what people who program in a functional language mean when they say "partially applied function" then I wrote a blog that I hope helps give the answer.

Simple Intro to Partially Applied Functions in Scala

Feedback welcome. I really would love to hear if I was able to make this "simple" as the title suggests.
 
chris webster
Bartender
Posts: 2407
36
Linux Oracle Postgres Database Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice one, Scott - thanks for posting!

Not sure if you're planning to follow this up with a look at currying, but here's my take on using curried functions to get rid of all those place-holders:

Strictly speaking, some of those functions could be function values, but I'm trying to keep it simple, as you did!
 
Scott Shipp
Ranch Hand
Posts: 223
12
Eclipse IDE IntelliJ IDE Java Scala Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sweet! Thanks for checking it out and thanks for the suggestion. That's a great idea!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!