I figure the best way to continue improving my writing skills is to write a lot.
So over the weekend I wrote up a short paper on using functional programming-style patterns for collections in Java.
Functional Collection Patterns in Java: How I Learned to Stop Worrying and Love Functional Programming
"While many software developers are familiar with the Iterator pattern from the classic 'Design Patterns' book, the Iterator pattern just scratches the surface of the abstractions available on collections. Classic languages such as Scheme, Common Lisp, and Smalltalk-80 provide much more powerful abstractions over collections. These abstractions are available in Java, they’re just a bit more verbose."
Tuesday, November 6, 2007
Subscribe to:
Post Comments (Atom)
2 comments:
Higher-order functions are functions that take other functions as arguments or return a function.
Filter and map are both higher-order functions, because they take other functions as parameters. f(n)=n+1 is not a higher order function.
Thanks for the feedback. You're right, so I modified that example to make it a high-order function.
Thanks again.
Post a Comment