Translingual
Symbol
{ }
- (mathematics) Encloses a mathematical phrase which has increased operator precedence.
- 10/2+3 = 5+3 = 8
- 10/{2+3} = 10/5 = 2
- (set theory) Encloses a set.
- Set of positive divisors of 6 = {1, 2, 3}.
- The set of even numbers can be written as { n ∊ ℤ : ∃ k ∊ ℤ: n = 2k } .
- (set theory) Empty set.
- Set of natural numbers between 2 and 3 = { }.
- (programming) Used in some programming languages.
- Encloses the body of a function.
- doSomethingTwice () { return doSomething () + doSomething () }
- Encloses each branch of a conditional.
- if (x>4) { result = "congratulations!" }
Related terms
- (mathematical precedence) ( ), [ ]
Punctuation mark
{ }
- Encloses a series of equal choices.
- Select your animal {goat, sheep, cow, horse} and follow me.
Usage notes
In English, this symbol is called curly brackets or braces.
See also