Is there any function in phobos that does something like that: auto a = [[1,2],[3,4]]; assert(equals(flatten(a), [1,2,3,4])); I am just learning D and ca't find anything like that in the docs.