dlang


Skip The First Line Of A File In D

There are actually a number of ways to do this, which can depend on your objectives. I want to leave...

Map Reduce In D

I didn't want to confuse function mapping and dictionaries, so I decided to include reduce. map is a...

Split, Apply, Merge In D

I wanted to find Groupby, a means to iterate a list in groups (lists of lists). In that search I came...

Check Dictionary Has Key In D

I'll just take the example from adding to a Dictionary. string[int][string] data; if("hello"!in dat...

Filter A Dictionary In D

This wasn't so much about filtering the content, but instead having a list of dictionaries and filter...

Add To A Dictionary In D

Dictionary, hash table, associative array, map it has many names. The main challenge with dictionary...