[Gambas-user] Remove Null or Empty items in arrays.
Bruce Steers
bsteers4 at gmail.com
Wed Jun 21 20:52:55 CEST 2023
On Wed, 21 Jun 2023, 19:09 Christof Thalhofer, <chrisml at deganius.de> wrote:
> Am 21.06.23 um 18:37 schrieb Martín:
>
> > I like this code you propose, thank you.
> > But I was wondering, since there is .Shuffle or .Sort, maybe it would be
> > a good idea to have .RemoveEmpty.
>
> No. :-)
>
> Because 'RemoveEmpty' is actually a specialization of 'Remove'. Why then
> not also 'RemoveNegative', 'RemoveEveryStringStartingWith', etc.?
>
> Alles Gute
>
> Christof Thalhofer
How about
String[].RemoveLike(Pattern As String)
Unique to String array like .Join() is but using reg expression to remove
pattern matched entries or if Pattern is Null then removes empty ones?
That could be useful
Respects
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230621/6df06c6b/attachment.htm>
More information about the User
mailing list