What does spaceship operator mean?

Definitions for spaceship operator
space·ship oper·a·tor

This dictionary definitions page includes all the possible meanings, example usage and translations of the word spaceship operator.

Wikipedia

  1. spaceship operator

    In computer science, a three-way comparison takes two values A and B belonging to a type with a total order and determines whether A < B, A = B, or A > B in a single operation, in accordance with the mathematical law of trichotomy.

Wikidata

  1. Spaceship operator

    The spaceship operator, written , is a binary relational operator that originated in the Perl programming language. Other languages, such as Ruby and Groovy also support the spaceship operator. Unlike traditional equality operators, which will return 1 or 0 depending on whether the arguments are equal or unequal, the spaceship operator will return 1, 0, or −1 depending on the value of the left argument relative to the right argument. If the left argument is greater than the right argument, the operator returns 1. If the left argument is less than the right argument, the operator returns −1. If the two arguments are equal, the operator returns 0. If the two arguments cannot be compared, the operator returns undef. In Perl, the operator only performs numeric comparisons. For string-based comparison, the analogous cmp operator is used instead. As a formula: The spaceship operator is primarily used for comparisons in sorting. The spaceship operator takes its name because it resembles Darth Vader's fighter from Star Wars Episode IV: A New Hope. The term is now commonly used and the operator is referred by the name within the Perl documentation.

The New Hacker's Dictionary

  1. spaceship operator

    The glyph <=>, so-called apparently because in the low-resolution constant-width font used on many terminals it vaguely resembles a flying saucer. Perl uses this to denote the signum-of-difference operation.

How to pronounce spaceship operator?

How to say spaceship operator in sign language?

Numerology

  1. Chaldean Numerology

    The numerical value of spaceship operator in Chaldean Numerology is: 1

  2. Pythagorean Numerology

    The numerical value of spaceship operator in Pythagorean Numerology is: 6


Translations for spaceship operator

From our Multilingual Translation Dictionary

Get even more translations for spaceship operator »

Translation

Find a translation for the spaceship operator definition in other languages:

Select another language:

  • - Select -
  • 简体中文 (Chinese - Simplified)
  • 繁體中文 (Chinese - Traditional)
  • Español (Spanish)
  • Esperanto (Esperanto)
  • 日本語 (Japanese)
  • Português (Portuguese)
  • Deutsch (German)
  • العربية (Arabic)
  • Français (French)
  • Русский (Russian)
  • ಕನ್ನಡ (Kannada)
  • 한국어 (Korean)
  • עברית (Hebrew)
  • Gaeilge (Irish)
  • Українська (Ukrainian)
  • اردو (Urdu)
  • Magyar (Hungarian)
  • मानक हिन्दी (Hindi)
  • Indonesia (Indonesian)
  • Italiano (Italian)
  • தமிழ் (Tamil)
  • Türkçe (Turkish)
  • తెలుగు (Telugu)
  • ภาษาไทย (Thai)
  • Tiếng Việt (Vietnamese)
  • Čeština (Czech)
  • Polski (Polish)
  • Bahasa Indonesia (Indonesian)
  • Românește (Romanian)
  • Nederlands (Dutch)
  • Ελληνικά (Greek)
  • Latinum (Latin)
  • Svenska (Swedish)
  • Dansk (Danish)
  • Suomi (Finnish)
  • فارسی (Persian)
  • ייִדיש (Yiddish)
  • հայերեն (Armenian)
  • Norsk (Norwegian)
  • English (English)

Word of the Day

Would you like us to send you a FREE new word definition delivered to your inbox daily?

Please enter your email address:


Citation

Use the citation below to add this definition to your bibliography:

Style:MLAChicagoAPA

"spaceship operator." Definitions.net. STANDS4 LLC, 2024. Web. 9 May 2024. <https://www.definitions.net/definition/spaceship+operator>.

Discuss these spaceship operator definitions with the community:

0 Comments

    Are we missing a good definition for spaceship operator? Don't keep it to yourself...

    Free, no signup required:

    Add to Chrome

    Get instant definitions for any word that hits you anywhere on the web!

    Free, no signup required:

    Add to Firefox

    Get instant definitions for any word that hits you anywhere on the web!

    Browse Definitions.net

    Quiz

    Are you a words master?

    »
    dark and gloomy
    A bristly
    B lacerate
    C ostensive
    D tenebrous

    Nearby & related entries:

    Alternative searches for spaceship operator: