Computer Programming with the Nim Programming Language
this example, we import the strutils module, which provides the `parseInt` procedure for parsing integers from strings. Then, we define a string `s` with the value "123", and use `parseInt` to convert second is called the clock rate. The CPU can perform simple operations, such as the addition of two integers, at each pulse of the clock signal. For more complicated operations, such as multiplication or proves. An important and useful feature of digital signals and data is their direct correlation to integers (integral numbers). The simplest form of digital data is binary data, which can only have two0 码力 | 865 页 | 7.45 MB | 1 年前3
Computer Programming with the Nim Programming Language
this example, we import the strutils module, which provides the `parseInt` procedure for parsing integers from strings. Then, we define a string `s` with the value "123", and use `parseInt` to convert second is called the clock rate. The CPU can perform simple operations, such as the addition of two integers, at each pulse of the clock signal. For more complicated operations, such as multiplication or proves. An important and useful feature of digital signals and data is their direct correlation to integers (integral numbers). The simplest form of digital data is binary data, which can only have two0 码力 | 784 页 | 2.13 MB | 1 年前3
Agda User Manual v2.5.2definitions with where-blocks Built-ins Using the built-in types The unit type Booleans Natural numbers Integers Floats Lists Characters Strings Equality Universe levels Sized types Coinduction IO Literal overloading inside of a record declaration, but not inside modules declared in an abstract block. Examples Integers can be implemented in various ways, e.g. as difference of two natural numbers: module Integer where +comm (p + n) 0 | +comm p n = refl Using abstract we do not give away the actual representation of integers, nor the implementation of the operations. We can construct them from 0ℤ, 1ℤ, _+ℤ_, and -ℤ, but0 码力 | 151 页 | 152.49 KB | 1 年前3
Agda User Manual v2.5.3definitions with where-blocks Built-ins Using the built-in types The unit type Booleans Natural numbers Integers Floats Lists Characters Strings Equality Universe levels Sized types Coinduction IO Literal overloading inside of a record declaration, but not inside modules declared in an abstract block. Examples Integers can be implemented in various ways, e.g. as difference of two natural numbers: module Integer where +comm (p + n) 0 | +comm p n = refl Using abstract we do not give away the actual representation of integers, nor the implementation of the operations. We can construct them from 0ℤ, 1ℤ, _+ℤ_, and -ℤ, but0 码力 | 185 页 | 185.00 KB | 1 年前3
Agda User Manual v2.5.4.2where-blocks Built-ins Using the built-in types The unit type Booleans Natural numbers Machine words Integers Floats Lists Characters Strings Equality Universe levels Sized types Coinduction IO Literal overloading inside of a record declaration, but not inside modules declared in an abstract block. Examples Integers can be implemented in various ways, e.g. as difference of two natural numbers: module Integer where +comm (p + n) 0 | +comm p n = refl Using abstract we do not give away the actual representation of integers, nor the implementation of the operations. We can construct them from 0ℤ, 1ℤ, _+ℤ_, and -ℤ, but0 码力 | 216 页 | 207.61 KB | 1 年前3
Agda User Manual v2.5.4.1where-blocks Built-ins Using the built-in types The unit type Booleans Natural numbers Machine words Integers Floats Lists Characters Strings Equality Universe levels Sized types Coinduction IO Literal overloading inside of a record declaration, but not inside modules declared in an abstract block. Examples Integers can be implemented in various ways, e.g. as difference of two natural numbers: module Integer where +comm (p + n) 0 | +comm p n = refl Using abstract we do not give away the actual representation of integers, nor the implementation of the operations. We can construct them from 0ℤ, 1ℤ, _+ℤ_, and -ℤ, but0 码力 | 216 页 | 207.64 KB | 1 年前3
Agda User Manual v2.5.4where-blocks Built-ins Using the built-in types The unit type Booleans Natural numbers Machine words Integers Floats Lists Characters Strings Equality Universe levels Sized types Coinduction IO Literal overloading inside of a record declaration, but not inside modules declared in an abstract block. Examples Integers can be implemented in various ways, e.g. as difference of two natural numbers: module Integer where +comm (p + n) 0 | +comm p n = refl Using abstract we do not give away the actual representation of integers, nor the implementation of the operations. We can construct them from 0ℤ, 1ℤ, _+ℤ_, and -ℤ, but0 码力 | 216 页 | 207.63 KB | 1 年前3
Agda User Manual v2.6.0.1has been caused by an incomplete definition – for instance a function is only defined for positive integers, but is applied to a negative integer. Agda and other languages based on type theory are total where-blocks Built-ins Using the built-in types The unit type Booleans Natural numbers Machine words Integers Floats Lists Characters Strings Equality Universe levels Sized types Coinduction IO Literal overloading inside of a record declaration, but not inside modules declared in an abstract block. Examples Integers can be implemented in various ways, e.g. as difference of two natural numbers: module Integer where0 码力 | 256 页 | 247.15 KB | 1 年前3
Agda User Manual v2.6.0has been caused by an incomplete definition – for instance a function is only defined for positive integers, but is applied to a negative integer. Agda and other languages based on type theory are total where-blocks Built-ins Using the built-in types The unit type Booleans Natural numbers Machine words Integers Floats Lists Characters Strings Equality Universe levels Sized types Coinduction IO Literal overloading inside of a record declaration, but not inside modules declared in an abstract block. Examples Integers can be implemented in various ways, e.g. as difference of two natural numbers: module Integer where0 码力 | 256 页 | 246.87 KB | 1 年前3
Agda User Manual v2.6.1.3been caused by an incomplete definition – for instance, a function is only defined for positive integers but is applied to a negative integer. Agda and other languages based on type theory are total languages Built-ins Using the built-in types The unit type The Σ-type Booleans Natural numbers Machine words Integers Floats Lists Characters Strings Equality Universe levels Sized types Coinduction IO Literal overloading inside of a record declaration, but not inside modules declared in an abstract block. Examples Integers can be implemented in various ways, e.g. as difference of two natural numbers: module Integer where0 码力 | 305 页 | 375.80 KB | 1 年前3
共 303 条
- 1
- 2
- 3
- 4
- 5
- 6
- 31













