Go 101 (Golang 101) v1.21.0the sync standard package. §40. Atomic Operations - the sync/atomic standard package. §41. Memory Order Guarantees in Go §42. Common Concurrent Programming Mistakes Memory Related §43. Memory Blocks // import a standard package 4. 5. const MaxRnd = 16 // a named constant declaration 6. 7. // A function declaration 8. /* 9. StatRandomNumbers produces a certain number of 10. non-negative declare three variables, with the standard variable declaration form. Variables i at line 19, x and y at line 34 are declared with the short variable declaration form. We have specified the type for variables0 码力 | 610 页 | 945.17 KB | 1 年前3
Go 101 (Golang 101) v1.21.0the sync standard package. §40. Atomic Operations - the sync/atomic standard package. §41. Memory Order Guarantees in Go §42. Common Concurrent Programming Mistakes Memory Related §43. Memory Blocks §44 "math/rand" // import a standard package 4| 5| const MaxRnd = 16 // a named constant declaration 6| 7| // A function declaration 8| /* 9| StatRandomNumbers produces a certain number of 10 | non-negative declare three variables, with the standard variable declaration form. Variables i at line 19, x and y at line 34 are declared with the short variable declaration form. We have specified the type for variables0 码力 | 880 页 | 833.34 KB | 1 年前3
Agda User Manual v2.6.2.2into scope, 2. A data declaration defining the datatype Vec with two constructors: the empty vector constructor [] and the cons constructor _∷_, 3. And finally an infixr declaration specifying the precedence itself is an implicit argument to the constructor _∷_. The final declaration with keyword ìnfixr does not belong to the datatype declaration itself; therefore it is not indented. It establishes the precedence copying the previous definition. We have declared A and n as generalizable variables to avoid the declaration of implicit arguments. This allows us to use A and n in the type of lookup without binding the0 码力 | 354 页 | 433.60 KB | 1 年前3
Agda User Manual v2.6.2.1into scope, 2. A data declaration defining the datatype Vec with two constructors: the empty vector constructor [] and the cons constructor _∷_, 3. And finally an infixr declaration specifying the precedence itself is an implicit argument to the constructor _∷_. The final declaration with keyword ìnfixr does not belong to the datatype declaration itself; therefore it is not indented. It establishes the precedence copying the previous definition. We have declared A and n as generalizable variables to avoid the declaration of implicit arguments. This allows us to use A and n in the type of lookup without binding the0 码力 | 350 页 | 416.80 KB | 1 年前3
Agda User Manual v2.6.3into scope, 2. A data declaration defining the datatype Vec with two constructors: the empty vector constructor [] and the cons constructor _∷_, 3. And finally an infixr declaration specifying the precedence itself is an implicit argument to the constructor _∷_. The final declaration with keyword ìnfixr does not belong to the datatype declaration itself; therefore it is not indented. It establishes the precedence copying the previous definition. We have declared A and n as generalizable variables to avoid the declaration of implicit arguments. This allows us to use A and n in the type of lookup without binding the0 码力 | 379 页 | 354.83 KB | 1 年前3
Agda User Manual v2.6.2into scope, 2. A data declaration defining the datatype Vec with two constructors: the empty vector constructor [] and the cons constructor _∷_, 3. And finally an infixr declaration specifying the precedence itself is an implicit argument to the constructor _∷_. The final declaration with keyword ìnfixr does not belong to the datatype declaration itself; therefore it is not indented. It establishes the precedence copying the previous definition. We have declared A and n as generalizable variables to avoid the declaration of implicit arguments. This allows us to use A and n in the type of lookup without binding the0 码力 | 348 页 | 414.11 KB | 1 年前3
Agda User Manual v2.6.0.1each file is the top-level module whose name matches the filename. The contents of a module are declaration such as data types and function definitions. Other modules can be imported using an import statement extends recursively to the where- blocks of a function and the declarations inside of a record declaration, but not inside modules declared in an abstract block. Examples Integers can be implemented in and support for fast arithmetic. The surface syntax of these concepts are not fixed, however, so in order to use the special treatment of natural numbers (say) you define an appropriate data type and then0 码力 | 256 页 | 247.15 KB | 1 年前3
Agda User Manual v2.6.0each file is the top-level module whose name matches the filename. The contents of a module are declaration such as data types and function definitions. Other modules can be imported using an import statement extends recursively to the where- blocks of a function and the declarations inside of a record declaration, but not inside modules declared in an abstract block. Examples Integers can be implemented in and support for fast arithmetic. The surface syntax of these concepts are not fixed, however, so in order to use the special treatment of natural numbers (say) you define an appropriate data type and then0 码力 | 256 页 | 246.87 KB | 1 年前3
Agda User Manual v2.6.1.3each file is the top-level module whose name matches the filename. The contents of a module are declaration such as data types and function definitions. Other modules can be imported using an import statement extends recursively to the where- blocks of a function and the declarations inside of a record declaration, but not inside modules declared in an abstract block. Examples Integers can be implemented in and support for fast arithmetic. The surface syntax of these concepts are not fixed, however, so in order to use the special treatment of natural numbers (say) you define an appropriate data type and then0 码力 | 305 页 | 375.80 KB | 1 年前3
Agda User Manual v2.6.1.2each file is the top-level module whose name matches the filename. The contents of a module are declaration such as data types and function definitions. Other modules can be imported using an import statement extends recursively to the where- blocks of a function and the declarations inside of a record declaration, but not inside modules declared in an abstract block. Examples Integers can be implemented in and support for fast arithmetic. The surface syntax of these concepts are not fixed, however, so in order to use the special treatment of natural numbers (say) you define an appropriate data type and then0 码力 | 304 页 | 375.60 KB | 1 年前3
共 584 条
- 1
- 2
- 3
- 4
- 5
- 6
- 59













