You are here |
rachelcarmena.github.io | ||
| | | |
volgarev.me
|
|
| | | | ||
| | | |
ashishvegaraju.com
|
|
| | | | In my last article about Functional domain modeling, I explored the expressiveness of F# in modeling a domain. I fell in love with the simplicity and expressiveness of the language. In this article I will attempt to explore function purity in F#. In F#, functions are first class citizens because it allows to pass function as an argument to other function, return a function or assign function to a variable. Initially I found it a bit hard to wrap my head around the concept of treating functions as first class citizens. In fact one of the biggest challenge for me was surprisingly not the weird syntax of F#, but to think in terms of functions. | |
| | | |
danielpecos.com
|
|
| | | | Purpose of this post is to providea glimpse of the new features included in Java 8 that shiftthis language towards a more Functional Programming paradigm. But before, let's define what we understand for Functional Programming (FP). Functional programming key characteristics include: Higher Order Functions Pure Functions and Immutability Tail Call Recursion Higher Order Functions for a FP language means that functions are considered first class citizens, allowing the programmer to use them as any other value the language defines, for example, a Function value: | |
| | | |
miparnisariblog.wordpress.com
|
|
| | PatternDescriptionExample usagesWorks onTwo pointersIterate over an array or multiple arrays to achieve some goal, faster than O(n^2)Finding palindromes, merging two arrays, subsequences in stringsUnsorted arrays, sorted arrays, stringsSliding windowFind a subarray that satisfies some numerical constraint. (If the constraint involves counting, use a hashmap).Add elements from the right until the constraint is broken, then remove... |