Перенос страниц

This commit is contained in:
Alexander Zhirov 2023-03-05 15:30:34 +03:00
parent 4d57446057
commit 4c954c9186
129 changed files with 14 additions and 15 deletions

View file

@ -0,0 +1,26 @@
import std.stdio;
void main()
{
auto coffeePrices = [
"французская ваниль" : 262,
"ява" : 239,
"французская обжарка" : 224
];
foreach (kind, price; coffeePrices)
{
writefln("%s стоит %s руб. за 100 г", kind, price);
}
auto gammaFunc = [-1.5:2.363, -0.5:-3.545, 0.5:1.772];
double[] keys = gammaFunc.keys;
assert(keys == [ -1.5, -0.5, 0.5 ]);
writeln(keys);
foreach (k; gammaFunc.byKey())
{
writeln(k);
}
}