|
|
|
|
|
by tel
4447 days ago
|
|
As another Haskeller... f :: (a -> b, a) -> b -- a.k.a. `ap`
f (a, b) = a b
myVal :: (Double -> Double, Double)
myVal = (sqrt, 4)
> f myVal
2 -- I hope
In other words, what's different about (a . b) and (a, b)? But then: why not (a, b, c)? |
|
The mistake is to take the ideological fanaticism of Lispheads for ideological purity of the language. There is none. Even the great schism of Lisp1 versus Lisp is rooted largely in arguments from precedent...and precedent for Lisp is largely that it can shave a few precious bytes and register loads by allowing a single symbol to point to more things.
[1] Or Cobol.