【函数概念并不难,理解“函”字是关键——函数概念如何理解】
https://m.toutiaocdn.com/group/6714162037842248205/?app=news_article_lite×tamp=1563301386&req_id=201907170223060101520450386849493&group_id=6714162037842248205&tt_from=android_share&utm_medium=toutiao_android&utm_campaign=client_share
清. 李善兰 翻译 Function 为函数。函,信也。只能有一个收信人,所以 只有一个 f(x) 值。
…
The unique 1 single output of a function becomes very important for subsequent development in Math & IT:
functions are composable, associative, identify function,etc (distributive,… ) => it can be treated like vector => structure of a Vector Space “Vect”
Extended to..
“Vect” is a bigger structure “Category” in which “function of functions” is a
“Functor” (函子)F:F(f)
Example : F(f) = fmap (in Haskell)
fmap (+1) {2,7,6,3}
=> {3,8,7,4}
here F = fmap, f = +1
The Math branch in the study of functions is called “functional” 泛函。
IT : Functional Programming in Lisp, Haskell, Scala, ensure safety of guaranteed output by math function property. Any unexpected exception (side effects: IO, errors) is handled by a special function called “Monad” (endo-Functor).
(想看更多合你口味的内容,马上下载 今日头条)
http://app.toutiao.com/news_article/?utm_source=link