Перенос страниц
This commit is contained in:
parent
4d57446057
commit
4c954c9186
129 changed files with 14 additions and 15 deletions
|
@ -1,20 +0,0 @@
|
|||
import std.stdio;
|
||||
|
||||
void main()
|
||||
{
|
||||
auto f = function double(int x) { return x / 10.; };
|
||||
auto a = f(5);
|
||||
assert(a == 0.5);
|
||||
|
||||
double function(int) e = function double(int x) { return x / 10.; };
|
||||
auto b = e(5);
|
||||
assert(b == 0.5);
|
||||
|
||||
int h = 2;
|
||||
auto g = delegate double(int x) { return h * x / 10.; };
|
||||
auto i = g(5);
|
||||
assert(i == 1);
|
||||
h = 3;
|
||||
auto j = g(5);
|
||||
assert(j == 1.5);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue