October 28, 2023 [Issue 24205] New: [Functions] add example for d style, static array, varatic functions | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24205 Issue ID: 24205 Summary: [Functions] add example for d style, static array, varatic functions Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW Severity: enhancement Priority: P3 Component: dlang.org Assignee: nobody@puremagic.com Reporter: crazymonkyyy@gmail.com ``` auto swizzle(T,I,size_t N)(T array,I[N] indexs...){ ... } unittest{ int[] i=[1,2,3,4,5]; i.swizzle(0,4,2); } ``` I found it hard to get this working -- |
Copyright © 1999-2021 by the D Language Foundation