We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
groupBy()
Allow certain match() methods to return grouped values.
match()
Methods:
groupBy(string|int)
groupByCallback(callable)
Requirements:
filter()->groupBy()
Example for all()
all()
pattern('\d+(?<unit>cm|mm)')->match('12cm 14mm 13cm 19cm 18mm 2mm')->groupBy('unit') ->all();
[ 'cm' => ['12cm', '13cm', '19cm'], 'mm' => ['14mm', '18mm', '2mm'] ]
The text was updated successfully, but these errors were encountered:
match()->all()->groupBy()
Add FluentMatchPattern.groupByCallback() #35
FluentMatchPattern.groupByCallback()
a868811
Add pattern()->match()->groupBy() #35
pattern()->match()->groupBy()
faaf006
Add pattern()->match()->groupBy()->flatMap() #35
pattern()->match()->groupBy()->flatMap()
85debcc
Added match()->groupBy()->byteOffsets() #35
match()->groupBy()->byteOffsets()
a61bb90
Added match()->groupBy()->offsets() #35
match()->groupBy()->offsets()
8d80f06
No branches or pull requests
Allow certain
match()
methods to return grouped values.Methods:
groupBy(string|int)
- groups by capturing groupgroupByCallback(callable)
- groups by user defined callbackRequirements:
filter()->groupBy()
.Example for
all()
The text was updated successfully, but these errors were encountered: