More idiomatic D and less verbose