Matthew Ong wrote: > Hopefully, does D currently support such ability? [go interface] You can do it with templates. Most of Phobos' range functions are written in a similar style.