62 karma · joined May 1, 2013 (13y ago) · 28 submissions
comment 7y ago · link · parent
"Over the months after our first meeting, I had all sorts of interactions with Steve about Mathematica. Actually, it wasn’t yet called Mathematica then … For a while he wouldn’t suggest anything. But then one day he said to me: 'You should call it Mathematica.' … he told me his theory for a name was to start from the generic term for something, then romanticize it." (Wolfram, Idea Makers)
comment 12y ago · link · parent
compose : (a -> b) -> (b -> c) -> (a -> c)
a `compose` b = \x -> b(a(x))
However, there is a whole spectrum of additionally possible functions which can be built to accept functions as arguments. Here's a couple of example: partial3 : (Integer -> Integer -> Integer) -> (Integer -> Integer)
partial3 f = f 3
map : [a] -> (a -> b) -> [b]
map [] f = []
map (x:xs) f = (f x):(map xs f)
The first one takes a function and applies an argument, 3; the next one takes a list and a function and maps the list using the provided function. The idea of functions as arguments is a very powerful one, and from my understanding one with which people sometimes struggle.comment 12y ago · link · parent
comment 12y ago · link · parent
For some reason, though, I feel like the natural language would actually intimidate me. Where are ideas like "sufficient funds" defined?
comment 12y ago · link · parent
comment 13y ago · link · parent
T([Number, Number])(function(x) { return x; })
For this method, a function type is defined and then serves as a constructor that accepts a function as argument.comment 13y ago · link · parent
[1] http://en.wikipedia.org/wiki/Carl_Friedrich_Gauss#Anecdotes