On Sunday, 12 September 2021 at 02:49:48 UTC, jfondren wrote:
On Sunday, 12 September 2021 at 02:44:36 UTC, Alex Bryan wrote:
`T[] dynArr` can be passed (by reference) to a function that
takes `ref T[] data` but `T[10] data` cannot? Why not?
```d
void add1(ref int[] nums) {
nums ~= 1;
}
u
On Sunday, 12 September 2021 at 02:44:36 UTC, Alex Bryan wrote:
`T[] dynArr` can be passed (by reference) to a function that
takes `ref T[] data` but `T[10] data` cannot? Why not?
```d
void add1(ref int[] nums) {
nums ~= 1;
}
unittest {
int[] nums;
nums.add1;
nums.add1;
num
On Sunday, 12 September 2021 at 01:48:07 UTC, H. S. Teoh wrote:
On Sun, Sep 12, 2021 at 01:08:17AM +, Alex Bryan via
Digitalmars-d-learn wrote:
I am having trouble discovering what the proper (or at least a
proper) way is to write a function that can take either a
static or dynamic array as
On Sun, Sep 12, 2021 at 01:08:17AM +, Alex Bryan via Digitalmars-d-learn
wrote:
> I am having trouble discovering what the proper (or at least a proper)
> way is to write a function that can take either a static or dynamic
> array as a parameter. My current implementation consists of 2
> overl
I am having trouble discovering what the proper (or at least a
proper) way is to write a function that can take either a static
or dynamic array as a parameter. My current implementation
consists of 2 overloaded functions (one takes a dynamic array,
the other takes a static array) with 99% copy
On Saturday, 11 September 2021 at 23:17:31 UTC, Vino wrote:
Hi All,
May i know whether there is any module similar to the Linux
command "comm" (finding difference between 2 files), if present
can you please guide me through link to the page nor do let me
know if there is any other solutio
Hi All,
May i know whether there is any module similar to the Linux
command "comm" (finding difference between 2 files), if present
can you please guide me through link to the page nor do let me
know if there is any other solution.
Eg
File1
list1
list2
list3
lsit5
File2
list1
list3
lsit
On Saturday, 11 September 2021 at 23:04:29 UTC, Vino wrote:
On Saturday, 11 September 2021 at 19:57:26 UTC, jfondren wrote:
[...]
Hi,
Thank you very much, let me try to explain the actual
requirement, the actual requirement is to find all the
permutations of a given array, I modified you
On Saturday, 11 September 2021 at 19:57:26 UTC, jfondren wrote:
On Saturday, 11 September 2021 at 19:37:42 UTC, Vino wrote:
Hi All,
Request your help on the below to print the below array as
"Required output", Was able to get these values
"[1,2],[2,3],[3,4],[4,5]" by using list.slide(2), n
On Saturday, 11 September 2021 at 19:57:26 UTC, jfondren wrote:
auto pairs = list.cartesianProduct(list.drop(1))
This `drop` isn't necessary.
On Saturday, 11 September 2021 at 19:37:42 UTC, Vino wrote:
Request your help on the below to print the below array as
"Required output", Was able to get these values
"[1,2],[2,3],[3,4],[4,5]" by using list.slide(2), need your
help to get values "1,3],[1,4],[1,5],[2,4],[2,5],[3,5]"
```d
im
On Saturday, 11 September 2021 at 19:37:42 UTC, Vino wrote:
Hi All,
Request your help on the below to print the below array as
"Required output", Was able to get these values
"[1,2],[2,3],[3,4],[4,5]" by using list.slide(2), need your
help to get values "1,3],[1,4],[1,5],[2,4],[2,5],[3,5]"
Hi All,
Request your help on the below to print the below array as
"Required output", Was able to get these values
"[1,2],[2,3],[3,4],[4,5]" by using list.slide(2), need your help
to get values "1,3],[1,4],[1,5],[2,4],[2,5],[3,5]"
auto list[] = [1,2,3,4,5]
Required output
[1,2],[2,3],[3,
On Friday, 10 September 2021 at 22:26:34 UTC, Ali Çehreli wrote:
https://bitbucket.org/acehreli/ddili/commits/
Ah it's there - gotta remember that place if I want to make
corrections. Good book - It's the one that got me up to speed
with D before I was commited enough to pay for anything.
On Friday, 10 September 2021 at 22:26:34 UTC, Ali Çehreli wrote:
Not off the top of my head but by actual commits. :)
https://bitbucket.org/acehreli/ddili/commits/
One major change that I can see is @property being discouraged.
Good to know. Thanks, Ali.
15 matches
Mail list logo