On Sunday, 7 August 2022 at 01:22:18 UTC, pascal111 wrote:
Why we use "chain" while we have "~":'''D int[] x=[1,2,3]; int[] y=[4,5,6]; auto z=chain(x,y); auto j=x~y; '''
Chain doesn't allocate any memory. This can be useful occasionally.
On Sunday, 7 August 2022 at 01:22:18 UTC, pascal111 wrote:
Why we use "chain" while we have "~":'''D int[] x=[1,2,3]; int[] y=[4,5,6]; auto z=chain(x,y); auto j=x~y; '''
Chain doesn't allocate any memory. This can be useful occasionally.