On Sun, 4 Mar 2018, Sven Schreiber wrote:
Am 04.03.2018 um 16:35 schrieb Allin Cottrell:
> There's a function I wanted in the context of svm() -- to get all the keys
> from a bundle in the form of an array of strings -- and I thought it might
> be useful to have it exposed in hansl under the name getkeys.
Thanks, sounds useful!
> I guess the example invites the idea that inarray() could be a built-in
> function for arrays of strings (at least). Any thoughts on whether that
> would be worthwhile?
In principle, yes. However, maybe it's worth pointing out that if we had a
function to stuff all the array elements together (say, 'concat'), then it
would just be a matter of doing:
strstr(concat(mystrings), "findme")
What if the array contained an element "findmeNOT", but no element
"findme"?
Allin