Haskell 2010 Language Reportreservedid → case | class | data | default | deriving | do | else | foreign | if | import | in | infix | infixl | infixr | instance | let | module | newtype | of | then | type | where | _ An identifier prefix negation, all operators are infix, although each infix operator can be used in a section to yield partially applied operators (see Section 3.5). All of the standard infix operators are just predefined letters, and the others by identifiers beginning with capitals; also, variables and constructors have infix forms, the other four do not. Module names are a dot-separated sequence of conids. Namespaces are0 码力 | 329 页 | 1.43 MB | 1 年前3
The Swift Programming Language (Swift 5.7) - Apps Dissectedafter their target (such as c!). Binary operators operate on two targets (such as 2 + 3) and are infix because they appear in between their two targets. Ternary operators operate on three targets. Like : c). The values that operators affect are operands. In the expression 1 + 2, the + symbol is an infix operator and its two operands are the values 1 and 2. Assignment Operator The assignment operator 7 } 8 // Prints "ACCESS DENIED" Logical OR Operator The logical OR operator (a || b) is an infix operator made from two adjacent pipe characters. You use it to create logical expressions in which0 码力 | 1040 页 | 10.90 MB | 1 年前3
The Swift Programming Languageafter their target (such as i++). Binary operators operate on two targets (such as 2 + 3) and are infix because they appear in between their two targets. Ternary operators operate on three targets. Like 7 } 8 // prints "ACCESS DENIED" Logical OR Operator The logical OR operator (a || b) is an infix operator made from two adjacent pipe characters. You use it to create logical expressions in which not just limited to the predefined operators. Swift gives you the freedom to define your own custom infix, prefix, postfix, and assignment operators, with custom precedence and associativity values. These0 码力 | 525 页 | 4.68 MB | 1 年前3
Kotlin 1.2 Language DocumentationBigInteger ; Arithmetic and bitwise operator functions: Binary operators + , - , * , / , % and infix functions and , or , xor , shl , shr ; Unary operators - , ++ , -- , and a function inv . New functions const external override lateinit tailrec vararg suspend inner enum / annotation companion inline infix operator data Place all annotations before modifiers: @Named("Foo") private val foo: Foo Unless Declare a function as infix only when it works on two objects which play a similar role. Good examples: and , to , zip . Bad example: add . Don't declare a method as infix if it mutates the receiver0 码力 | 333 页 | 2.22 MB | 1 年前3
Agda User Manual v2.6.0.1module Agda.Builtin.Equality The identity type can be bound to the built-in EQUALITY as follows infix 4 _≡_ data _≡_ {a} {A : Set a} (x : A) : A → Set a where refl : x ≡ x {-# BUILTIN EQUALITY _≡_ BUILTIN INTERVAL I #-} -- I : Setω {-# BUILTIN IZERO i0 #-} {-# BUILTIN IONE i1 #-} infix 30 primINeg infixr 20 primIMin primIMax primitive primIMin : I → I → I -- _∧_ primIMax : I → postulate PathP : ∀ {ℓ} (A : I → Set ℓ) → A i0 → A i1 → Set ℓ {-# BUILTIN PATHP PathP #-} infix 4 _≡_ _≡_ : ∀ {ℓ} {A : Set ℓ} → A → A → Set ℓ _≡_ {A = A} = PathP (λ _ → A) {-# BUILTIN PATH0 码力 | 256 页 | 247.15 KB | 1 年前3
Agda User Manual v2.6.0module Agda.Builtin.Equality The identity type can be bound to the built-in EQUALITY as follows infix 4 _≡_ data _≡_ {a} {A : Set a} (x : A) : A → Set a where refl : x ≡ x {-# BUILTIN EQUALITY _≡_ BUILTIN INTERVAL I #-} -- I : Setω {-# BUILTIN IZERO i0 #-} {-# BUILTIN IONE i1 #-} infix 30 primINeg infixr 20 primIMin primIMax primitive primIMin : I → I → I -- _∧_ primIMax : I → postulate PathP : ∀ {ℓ} (A : I → Set ℓ) → A i0 → A i1 → Set ℓ {-# BUILTIN PATHP PathP #-} infix 4 _≡_ _≡_ : ∀ {ℓ} {A : Set ℓ} → A → A → Set ℓ _≡_ {A = A} = PathP (λ _ → A) {-# BUILTIN PATH0 码力 | 256 页 | 246.87 KB | 1 年前3
Agda User Manual v2.6.3Agda displays the term (x + y) + z as x + y + z (without parenthesis). This is done because of the infix statement infixl 6 _+_ that was declared in the imported Agda.Builtin.Nat module. This declaration module Agda.Builtin.Equality The identity type can be bound to the built-in EQUALITY as follows infix 4 _≡_ data _≡_ {a} {A : Set a} (x : A) : A → Set a where refl : x ≡ x {-# BUILTIN EQUALITY _≡_ translation from Agda.Syntax.Concrete to Agda.Syntax.Abstract involves scope analysis, figuring out infix operator precedences and tidying up definitions. The abstract syntax Agda.Syntax.Abstract is the0 码力 | 379 页 | 354.83 KB | 1 年前3
Agda User Manual v2.6.2Agda displays the term (x + y) + z as x + y + z (without parenthesis). This is done because of the infix statement infixl 6 _+_ that was declared in the imported Agda.Builtin.Nat module. This declaration module Agda.Builtin.Equality The identity type can be bound to the built-in EQUALITY as follows infix 4 _≡_ data _≡_ {a} {A : Set a} (x : A) : A → Set a where refl : x ≡ x {-# BUILTIN EQUALITY _≡_ translation from Agda.Syntax.Concrete to Agda.Syntax.Abstract involves scope analysis, figuring out infix operator precedences and tidying up definitions. The abstract syntax Agda.Syntax.Abstract is the0 码力 | 348 页 | 414.11 KB | 1 年前3
Agda User Manual v2.6.2.2Agda displays the term (x + y) + z as x + y + z (without parenthesis). This is done because of the infix statement infixl 6 _+_ that was declared in the imported Agda.Builtin.Nat module. This declaration module Agda.Builtin.Equality The identity type can be bound to the built-in EQUALITY as follows infix 4 _≡_ data _≡_ {a} {A : Set a} (x : A) : A → Set a where refl : x ≡ x {-# BUILTIN EQUALITY _≡_ translation from Agda.Syntax.Concrete to Agda.Syntax.Abstract involves scope analysis, figuring out infix operator precedences and tidying up definitions. The abstract syntax Agda.Syntax.Abstract is the0 码力 | 354 页 | 433.60 KB | 1 年前3
Agda User Manual v2.6.2.1Agda displays the term (x + y) + z as x + y + z (without parenthesis). This is done because of the infix statement infixl 6 _+_ that was declared in the imported Agda.Builtin.Nat module. This declaration module Agda.Builtin.Equality The identity type can be bound to the built-in EQUALITY as follows infix 4 _≡_ data _≡_ {a} {A : Set a} (x : A) : A → Set a where refl : x ≡ x {-# BUILTIN EQUALITY _≡_ translation from Agda.Syntax.Concrete to Agda.Syntax.Abstract involves scope analysis, figuring out infix operator precedences and tidying up definitions. The abstract syntax Agda.Syntax.Abstract is the0 码力 | 350 页 | 416.80 KB | 1 年前3
共 227 条
- 1
- 2
- 3
- 4
- 5
- 6
- 23













