网站首页  情感咨询  情感美文  情感百科  情感生活  学习充电  旧版美文

请输入您要查询的词汇:

 

词汇 nonvariant
分类 英语词汇 英语翻译词典
释义

nonvariant

英汉-汉英词典
adj. 不变的,无变量的,恒定的
词组 | 习惯用语
您要查找的是不是:
  • variant adj. 不同的;多样的 n. 变体;转化
  • oceanfront n. 海滨
  • invariant adj. 无变化的,不变的 n. 不变式,不变量
  • covariant adj. 协变的 n. 协变式
nonvariant system 不变系,不变系统

网络短语:
nonvariant 不变的
nonvariant boiling reagent 恒沸剂
nonvariant t system 不变系
英语百科

Covariance and contravariance (computer science)

The type system of many programming languages supports subtyping. For instance, if Cat is subtype of Animal, then an expression of type Cat can be used whenever an expression of type Animal could. Variance refers to how subtyping between more complex types (list of Cats versus list of Animals, function returning Cat versus function returning Animal, ...) relates to subtyping between their components. Depending on the variance of the type constructor, the subtyping relation may be either preserved, reversed, or ignored. For example in OCaml, "list of Cat" is a subtype of "list of Animal" because the list constructor is covariant, while "function from Animal to String" is a subtype of "function from Cat to String" because the function type constructor is contravariant in the argument type.

随便看

 

依恋情感网英汉例句词典收录3870147条英语例句词条,基本涵盖了全部常用英语单词的释义及例句,是英语学习的有利工具。

 

Copyright © 2004-2024 Yiyi18.com All Rights Reserved
京ICP备2021023879号 更新时间:2025/8/9 7:15:49