Diggory:
The documentation seems too say that "[mytuple]" will make an array,
Nope. You have to extract the inherent typetuple first. And this is what the [] syntax does (tested):
import std.stdio, std.typecons, std.algorithm;
void main() {
auto t = tuple("foo", "bar", "spam");
assert([t[]].canFind("bar"));
}
Bye,
bearophile
