-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
featureNew features.New features.
Description
i came across a scenario in mzk where i wanted to make a DefaultDict which parsed a string into a key (different from the original string) and a value, like so:
// e.g. #EXT-TAG-EXAMPLE tag_value
new DefaultDictionary<string, List<string>>(x => {
string[] split = x.Split(" ");
string key = split.First();
string firstValue = split.Skip(1).Join(" ");
return (key, [firstValue]);
});This would be a good utility to have, increasing the versatility of the DefaultDictionary class. Obviously, overloads such as Func<T, Tuple<K, V>> would be helpful too.
Metadata
Metadata
Assignees
Labels
featureNew features.New features.
Projects
Status
No status