网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 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.

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/6/18 19:04:48