Arrays: added wrap() method - #180
Merged
Merged
Conversation
milo
pushed a commit
to milo/nette-utils
that referenced
this pull request
Dec 7, 2018
Member
Author
|
Maybe implement it by count($arr) ? ($prefix . implode($suffix . $glue . $prefix, $arr) . $suffix) : '';but crucial is an API. No need for array count condition and prefix/suffix on single place. |
dg
force-pushed
the
master
branch
7 times, most recently
from
February 5, 2019 21:43
1d615d6 to
ec1e405
Compare
dg
force-pushed
the
master
branch
10 times, most recently
from
March 17, 2019 13:59
5c076fd to
0b71017
Compare
Member
|
What about method |
dg
force-pushed
the
master
branch
2 times, most recently
from
October 21, 2019 20:42
3ad8f46 to
c133e18
Compare
dg
force-pushed
the
master
branch
5 times, most recently
from
November 19, 2019 21:02
4ed28bc to
7331c07
Compare
dg
force-pushed
the
master
branch
24 times, most recently
from
January 20, 2020 18:30
7a06e79 to
fbb0693
Compare
Member
Author
|
Sure, Not sure about type casting everything to string. |
Member
|
Great |
Member
Author
|
Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm using such conctruction quite often, maybe I'm not the only one.