Expand Static array into a parameter arguments (AliasSeq!).
static void foo(int a, int b, int c) { version(show) { import std.stdio: writefln; writefln("a: %s, b: %s, c: %s", a, b, c); } } int[3] arr = [1, 2, 3]; foo(expand!arr);
http://forum.dlang.org/thread/hwellpcaomwbpnpofzlx@forum.dlang.org?page=1
See Implementation
Expand Static array into a parameter arguments (AliasSeq!).