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
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
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
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.
Numerology
Chaldean Numerology
The numerical value of spaceship operator in Chaldean Numerology is: 1
Pythagorean Numerology
The numerical value of spaceship operator in Pythagorean Numerology is: 6
Translations for spaceship operator
From our Multilingual Translation Dictionary
- űrhajó-üzemeltetőHungarian
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?
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:
Report Comment
We're doing our best to make sure our content is useful, accurate and safe.
If by any chance you spot an inappropriate comment while navigating through our website please use this form to let us know, and we'll take care of it shortly.
Attachment
You need to be logged in to favorite.
Log In