[Gambas-user] Remove Null or Empty items in arrays.
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
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User