January 03, 2023 Learn » Re: How should I return multiple const values from a function? | |||
|---|---|---|---|
| |||
...Key, Value)
{
import std.typecons;
alias Tup = Tuple!(const(Key), const(Value));
enum Fun = (Key... | |||
January 02, 2023 Learn » Re: How should I return multiple const values from a function? | |||
|---|---|---|---|
| |||
... Val.init; return Tuple!(const(Key), const(Val))(k, v); ... | |||
January 03, 2023 Learn » Re: How should I return multiple const values from a function? | |||
|---|---|---|---|
| |||
...Key, Value)(Key k, Value v)
{
return Tuple!(const(Key), const(Value))(k, v);
}
void... | |||
January 02, 2023 Genel » Re: Çokuzlu Tuple Örnekleri | |||
|---|---|---|---|
| |||
...std.stdio : writefln;
void main()
{
alias Ş = Tuple!( int, "plaka",
string, "şehir");
auto şehirler = [ Ş... | |||
January 02, 2023 Genel » Çokuzlu Tuple Örnekleri | |||
|---|---|---|---|
| |||
...Bazen "demet", bazen "çok-öğeli" olarak karşılaşabileceğiniz tuple'lar birçok işinize yarayabilir. Aslında bu konu... | |||
January 02, 2023 Learn » How should I return multiple const values from a function? | |||
|---|---|---|---|
| |||
...implicitly convert expression `tuple(k, v)` of type `Tuple!(string, string)` to `Tuple!(const(string... | |||
January 02, 2023 Genel » Re: Deconstructing Declaration | |||
|---|---|---|---|
| |||
...import std;
void main() {
auto dizi = [ tuple("merhaba", 20), tuple("dünya", 30) ];
// Bu örnek için... | |||
January 02, 2023 Genel » Re: Deconstructing Declaration | |||
|---|---|---|---|
| |||
...import std.stdio, std.typecons;
alias personel = Tuple!(string, "firstName",
string, "lastName");
struct Data { string... | |||
December 17, 2022 Issues » [Issue 8243] cannot initialize tuple with an element at module scope but this is allowed in function-local scopes | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=8243 Iain Buclaw <ibuclaw@gdcproject.org> changed... | |||
December 17, 2022 Issues » [Issue 8184] problem with tuple argument deduction | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=8184 Iain Buclaw <ibuclaw@gdcproject.org> changed... | |||
Copyright © 1999-2021 by the D Language Foundation