You are here |
golangbot.com | ||
| | | |
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. | |
| | | |
wimvanderbauwhede.github.io
|
|
| | | | A brief introduction into function types, with a way to implement them in Raku and examples in many languages. | |
| | | |
www.baturin.org
|
|
| | | | ||
| | | |
donsbot.com
|
|
| | In a recent mailing list thread Andrew Coppin complained of poor performance with "nice, declarative" code for computing the mean of a very large list of double precision floating point values: import System.Environment import Text.Printf mean :: [Double] -> Double mean xs = sum xs / fromIntegral (length xs) main = do [d] <- map... |