V2EX  ›  英汉词典

Nonempty

释义 Definition

nonempty(形容词)非空的不是空的;(尤指数学/计算机语境)至少包含一个元素/字符/条目的。

发音 Pronunciation (IPA)

/ˌnɒnˈempti/ (BrE), /ˌnɑːnˈempti/ (AmE)

例句 Examples

The box is nonempty.
这个盒子不是空的。

Assume the input is a nonempty string, and return the first character that repeats.
假设输入是一个非空字符串,并返回第一个重复出现的字符。

词源 Etymology

由前缀 **non-**(表示“非、不”)+ empty(“空的”)构成,字面意思就是“不是空的”。在数学与计算机科学中常用来强调“集合/列表/字符串至少有一个元素”,避免“空集合/空输入”带来的特殊情况。

相关词 Related Words

文学与作品 Literary Works

  • Introduction to Algorithms(CLRS)——常见于“nonempty set/array”等表述(亦常写作 non-empty)。
  • Concrete Mathematics(Graham, Knuth, Patashnik)——在离散数学语境中用于描述“非空集合”等概念。
  • The C Programming Language(Kernighan & Ritchie)——在字符串与输入处理的讨论里常出现“non-empty string”的用法。
  • Structure and Interpretation of Computer Programs(SICP)——在函数与数据结构的条件讨论中常用到“非空列表/序列”的表述(多为 non-empty)。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2024 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 13:04 · PVG 21:04 · LAX 05:04 · JFK 08:04
♥ Do have faith in what you're doing.