Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

two new functions splitKeyValuePairs and groupByMultiKeyValuePairs #319

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BobSilent
Copy link

splitKeyValuePairs
allows splitting a string into a map of key value pairs, e.g. key1:value1,key2:value2 into a map of key values
it also allows providing a defaultKey, if not KeyValuePair splitting character is found the string is assumed as value and a defaultKey is set as key, otherwise value and key are same

groupByMultiKeyValuePairs
simialar to groupByMulti but interprets the splitted string into a key and value part and the grouping is done by the key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants