Skip to content

two new functions splitKeyValuePairs and groupByMultiKeyValuePairs #319

New issue

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

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

Already on GitHub? # to your account

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

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

Successfully merging this pull request may close these issues.

2 participants