Expand Static array into a parameter arguments (AliasSeq!).
static void foo(int a, int b, int c) { import std.stdio: writefln; version(print) 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!).