Jump to content

Overloaded operators: Difference between revisions

m
(julia example)
Line 225:
=={{header|Julia}}==
Most operators in Julia's base syntax are in fact just syntactic sugar for function calls. In particular, the symbols:
</lang julia>
* / ÷ % & ⋅ ∘ × ∩ ∧ ⊗ ⊘ ⊙ ⊚ ⊛ ⊠ ⊡ ⊓ ∗ ∙ ∤ ⅋ ≀ ⊼ ⋄ ⋆ ⋇
⋉ ⋊ ⋋ ⋌ ⋏ ⋒ ⟑ ⦸ ⦼ ⦾ ⦿ ⧶ ⧷ ⨇ ⨰ ⨱ ⨲ ⨳ ⨴ ⨵ ⨶ ⨷ ⨸ ⨻
Line 258:
the new type so as to leverage existing code made for analagous base types. This can allow generic
functions to use new types in efficient and constructive ways.
 
 
=={{header|Nim}}==
4,108

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.