KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In D how do i apply a function to all elements in an array? For example i want to apply the std.string.leftJustify() function to all elements in a string array. I know i could use a loop but is there a nice map function? I see there is one in the std.algorithm library but i've no idea how to use templates in D yet. Any examples?
Tags (comma-separated)
Save Edits
Cancel