朋友是什么意思| 伊字五行属什么| 什么辉煌四字词语| 白细胞偏高说明什么| 脑血管堵塞吃什么药好| 90年属什么生肖| 胆汁酸高是什么意思| 喉咙长息肉有什么症状| 药流后可以吃什么水果| 786是什么意思| 天煞孤星是什么意思| 脾脏结节一般是什么病| 定日是什么意思| 船只是什么意思| d二聚体偏高说明什么| 为什么文化大革命| 什么是什么的家| 空腹喝啤酒有什么危害| 女性胆囊炎有什么症状| 黄牛票是什么意思| 买手机上什么网| 皮肤变黄是什么原因| 浮屠是什么意思| 甲亢与甲减有什么区别| 属狗是什么星座| 男人吃什么对性功能好| 治股癣用什么药最好| 信女是什么意思| 摆渡人什么意思| 溪字五行属什么| 1996年什么命| 谷丙转氨酶高吃什么药| 二级警监是什么级别| 什么还珠| 什么是团队| 没睡好头疼是什么原因| 罗汉果泡水喝有什么作用| 眼角疼是什么原因| 微量元素6项是查什么| 孕妇什么体质容易晚生| 梦见很多蛇是什么意思| 小孩子经常流鼻血是什么原因| 列文虎克发明了什么| 粉尘螨是什么| 私募是做什么的| 钙片不能和什么一起吃| 红斑狼疮是什么| 梦见小黑蛇是什么预兆| 晚上吃什么能减肥| 眼袋大用什么方法消除| 股长是什么级别| 钡餐造影能查出什么| 信必可是什么药| 纠葛是什么意思| 凤尾菜又叫什么菜| 什么是刑事拘留| 马革裹尸什么意思| 关二爷是什么神| 肺纹理增多什么意思| 蝉喜欢吃什么| 领结婚证需要准备什么| 喝什么茶对肝脏好| 眼皮跳挂什么科| 血小板偏高是什么原因| 躁郁症是什么| 揽子是什么意思| 郭晶晶什么学历| 今年16岁属什么| 计算机二级什么时候考| 蒙脱石散什么时候吃| 六月份出生的是什么星座| 铄字五行属什么| 机械键盘什么轴最好| 少校军衔是什么级别| 溢字五行属什么| 什么叫匝道| 少尉是什么级别| 为什么心脏会隐隐作痛| 初秋的天冰冷的夜是什么歌| 黄发指什么| 血脂高有什么症状表现| 什么减肥药好使| 林伽是什么| 秋葵补什么| 血脂是指什么| 双氧水是什么东西| 吃什么都咸是什么原因| 白细胞低是怎么回事有什么危害| 温度计代表什么生肖| 怀孕前三个月要注意什么| wing是什么意思| 什么鱼炖汤好喝又营养| 孕早期是什么时候| b超是检查什么的| 突然低血压是什么原因造成的| 喝紫苏水有什么功效| 手腕凸起的骨头叫什么| 抢沙发是什么意思| 男人都喜欢什么样的女人| 什么火灾不能用水扑灭| 狗的尾巴有什么作用| 3月21号是什么星座| 急性肠炎吃什么药| 抗角蛋白抗体阳性是什么意思| 老虎五行属什么| 挂绿荔枝为什么那么贵| 胰腺ca是什么意思| 做肝功能检查挂什么科| 锦纶氨纶是什么面料| 曹操是什么时期的人| EPS什么意思| 佛珠生菇讲述什么道理| 健身rm是什么意思| 腰肌劳损吃什么药| 吃山药有什么好处| 戏是什么意思| 老年人适合吃什么| 为什么穿堂风最伤人| 聿五行属什么| 魔芋是什么做的| 吃什么头发能变黑| 喻字五行属什么| 女人乳房疼是什么原因| 碉堡是什么意思啊| 市宣传部长是什么级别| 为什么怀孕前三个月不能说| 100001是什么电话| 口嗨什么意思| 稼字五行属什么| 狼毒是什么| 肉桂是什么味道| 嗜血综合症是什么病| 甲肝戊肝是什么病| 梦见盖房子是什么预兆| 环磷酰胺是什么药| 右下腹疼是什么原因| 胸痛是什么原因| 疝气吃什么药效果好| 楼台是什么意思| 局长是什么级别干部| 什么津乐道| 做彩超为什么要憋尿| 冒失是什么意思| 西藏有什么特产| 壬水命是什么意思| 女人鼻子大代表什么| 3月28号是什么星座| 治股癣用什么药最好| 锥切手术是什么意思| 银属于五行属什么| 怕热的人是什么原因| 紫癜是什么引起的| 宁的五行属性是什么| 担心是什么意思| 没有润滑油用什么代替| 黑壳虾吃什么| 二婚是什么意思| 打哈哈是什么意思| 胸闷憋气是什么原因| 年下是什么意思| 元五行属性是什么| 子宫肌瘤吃什么食物| balenciaga是什么牌子| 新斯的明是什么药| 环球中心有什么好玩的| 小米粥和什么搭配最好最养胃| 小生化是检查什么项目| 易栓症是什么病| who是什么组织| 断头婚是什么意思| 输卵管造影什么时候检查最好| 白羊座男生喜欢什么样的女生| 计算机二级什么时候查成绩| 突然呕吐是什么原因| 得过且过什么意思| 玉米属于什么类食物| 什么样的小鱼| 实质是什么意思| 圻字五行属什么| 弱精症有什么症状表现| 牙龈出血是什么病征兆| 心肌供血不足是什么原因造成的| 成人睡觉磨牙是什么原因| 线索细胞阳性是什么意思| 正常舌头是什么颜色| 右眼袋跳动是什么原因| 6月20日是什么星座| 什么然而至| 月经期喝什么茶好| 什么龟最贵| 尿液黄是什么原因| 什么的歌声填词语| 血常规用什么颜色的试管| bossini是什么牌子| 心脏回流是什么意思| 黄飞鸿代表什么生肖| 1969年属鸡是什么命| 离经之血是什么意思| 福尔马林是什么味道| 米字五行属什么| 鼻涕带血是什么原因引起的| 下巴发黑是什么原因| 扁桃体发炎吃什么药比较好| 一什么黑暗| 拔完牙吃什么| 腹泻吃什么药见效最快| 鞋底md是什么材质| 羊水为什么叫羊水| 这是什么猫| 结肠是什么病| 羊水是什么颜色的| 八珍胶囊适合什么人吃| 肺炎吃什么消炎药| 手发胀是什么前兆| 小麦肤色是什么颜色| 周围神经病是什么病| 财多身弱什么意思| 坚持是什么意思| 什么是双规| 放热屁是什么原因| 湿疹抹什么药膏| nt和无创有什么区别| 非萎缩性胃炎吃什么药| 月可以加什么偏旁| 寒性和凉性有什么区别| 尿频尿急是什么原因| 杭盖是什么意思| 中国信什么教| 心动过速吃什么药| 难舍难分是什么意思| 碱性磷酸酶高吃什么药| 计算机科学与技术是学什么的| 山五行属什么| 孕妇为什么不能吃西瓜| 一个月来两次例假是什么原因| 6月15号是什么星座| 一直放屁什么原因| 原始心管搏动是什么意思| 实蛋是什么| 归元寺求什么最灵验| 壬子五行属什么| 认知是什么意思| 腰部酸胀是什么原因| 一本万利是什么生肖| 木字旁加差是什么字| 艾滋病通过什么传播| 1905年是什么朝代| lpn什么意思| 做月子要注意什么| 牙齿松动了有什么办法能固齿吗| 膝盖小腿酸软无力是什么原因| 九里香什么时候开花| 2003年属羊的是什么命| 鹰嘴桃什么时候成熟| 喉咙长期有痰是什么原因| 什么水果含糖量低| 才下眉头却上心头是什么意思| beast什么意思| 打边炉是什么意思| 脂蛋白磷脂酶a2高说明什么| 什么是基础医学| 玫瑰花可以和什么一起泡水喝| 9k金是什么意思| 儿童牙龈肿痛吃什么药| 百度Jump to content

英中海上风电研讨会在京举办 共商降低风电成本

From Wikipedia, the free encyclopedia
百度 他们还对樱花林及林内木栈道、森林烧烤区、美食广场、儿童嘉年华、恐龙园、亲水平台等人群密集、流动性大的重点部位加强防范,实施不间断巡逻,确保园区安全。

In computer science and mathematical logic, a function type (or arrow type or exponential) is the type of a variable or parameter to which a function has or can be assigned, or an argument or result type of a higher-order function taking or returning a function.

A function type depends on the type of the parameters and the result type of the function (it, or more accurately the unapplied type constructor · → ·, is a higher-kinded type). In theoretical settings and programming languages where functions are defined in curried form, such as the simply typed lambda calculus, a function type depends on exactly two types, the domain A and the range B. Here a function type is often denoted AB, following mathematical convention, or BA, based on there existing exactly BA (exponentially many) set-theoretic functions mappings A to B in the category of sets. The class of such maps or functions is called the exponential object. The act of currying makes the function type adjoint to the product type; this is explored in detail in the article on currying.

The function type can be considered to be a special case of the dependent product type, which among other properties, encompasses the idea of a polymorphic function.

Programming languages

[edit]

The syntax used for function types in several programming languages can be summarized, including an example type signature for the higher-order function composition function:

Language Notation Example type signature
With first-class functions,
parametric polymorphism
C# Func<α1,α2,...,αn,ρ> Func<A,C> compose(Func<B,C> f, Func<A,B> g);
Haskell α -> ρ compose :: (b -> c) -> (a -> b) -> a -> c
OCaml α -> ρ compose : ('b -> 'c) -> ('a -> 'b) -> 'a -> 'c
Scala (α1,α2,...,αn) => ρ def compose[A, B, C](f: B => C, g: A => B): A => C
Standard ML α -> ρ compose : ('b -> 'c) -> ('a -> 'b) -> 'a -> 'c
Swift α -> ρ func compose<A,B,C>(f: (B) -> C, g: (A) -> B) -> (A) -> C
Rust fn(α1,α2,...,αn) -> ρ fn compose<A, B, C>(f: fn(A) -> B, g: fn(B) -> C) -> fn(A) -> C
With first-class functions,
without parametric polymorphism
Go func(α1,α2,...,αn) ρ var compose func(func(int)int, func(int)int) func(int)int
C++, Objective-C, with blocks ρ (^)(α1,α2,...,αn) int (^compose(int (^f)(int), int (^g)(int)))(int);
Without first-class functions,
parametric polymorphism
C ρ (*)(α1,α2,...,αn) int (*compose(int (*f)(int), int (*g)(int)))(int);
C++11 Not unique.

std::function<ρ (α1,α2,...,αn)> is the more general type (see below).

function<function<int(int)>(function<int(int)>, function<int(int)>)> compose;

When looking at the example type signature of, for example C#, the type of the function compose is actually Func<Func<A,B>,Func<B,C>,Func<A,C>>.

Due to type erasure in C++11's std::function, it is more common to use templates for higher order function parameters and type inference (auto) for closures.

Denotational semantics

[edit]

The function type in programming languages does not correspond to the space of all set-theoretic functions. Given the countably infinite type of natural numbers as the domain and the booleans as range, then there are an uncountably infinite number (2?0 = c) of set-theoretic functions between them. Clearly this space of functions is larger than the number of functions that can be defined in any programming language, as there exist only countably many programs (a program being a finite sequence of a finite number of symbols) and one of the set-theoretic functions effectively solves the halting problem.

Denotational semantics concerns itself with finding more appropriate models (called domains) to model programming language concepts such as function types. It turns out that restricting expression to the set of computable functions is not sufficient either if the programming language allows writing non-terminating computations (which is the case if the programming language is Turing complete). Expression must be restricted to the so-called continuous functions (corresponding to continuity in the Scott topology, not continuity in the real analytical sense). Even then, the set of continuous function contains the parallel-or function, which cannot be correctly defined in all programming languages.

See also

[edit]

References

[edit]
  • Pierce, Benjamin C. (2002). Types and Programming Languages. The MIT Press. pp. 99–100. ISBN 9780262162098.
  • Mitchell, John C. Foundations for Programming Languages. The MIT Press.
  • function type at the nLab
  • Homotopy Type Theory: Univalent Foundations of Mathematics, The Univalent Foundations Program, Institute for Advanced Study. See section 1.2.
甲亢有些什么症状 走马观花是什么意思 腹泻可以吃什么食物 宫颈囊肿有什么症状表现 命好的人都有什么特征
点完痣要注意什么 欧诗漫适合什么年龄 什么是芝士 脱发是什么原因引起的 做梦梦见屎是什么意思
报晓是什么意思 口腔溃疡吃什么中成药 孕妇血糖高吃什么 万事如意是什么生肖 肝气郁结喝什么茶
白是什么意思 气短吃什么药效果好 女人怀孕的最佳时间是什么时间 什么矿泉水最贵 月经不来又没怀孕是什么原因
广东有什么好玩的地方hcv9jop4ns4r.cn 脑梗病人吃什么营养恢复最好hcv8jop5ns5r.cn sunny是什么意思hcv8jop5ns9r.cn 老人肚子胀是什么原因hcv7jop6ns4r.cn 鱼缸什么材质的好hcv8jop6ns2r.cn
1992是什么年hcv9jop4ns0r.cn 脑多普勒检查什么hcv9jop7ns2r.cn 降压药什么药好hcv9jop6ns4r.cn 国安是什么单位jiuxinfghf.com 央企董事长什么级别hcv7jop9ns9r.cn
十余载是什么意思hcv9jop1ns1r.cn 卵磷脂是什么hcv7jop6ns2r.cn 骶椎腰化什么意思hcv9jop1ns6r.cn 头出虚汗是什么原因引起的hcv8jop9ns1r.cn 阑尾炎吃什么药见效快hcv8jop1ns7r.cn
农历8月是什么月hcv9jop3ns3r.cn 美国为什么打朝鲜hcv9jop5ns9r.cn 男士175是什么码dayuxmw.com 白鱼又叫什么鱼hcv9jop3ns2r.cn 尿道口为什么叫马眼hcv8jop0ns1r.cn
百度