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")
(Where in my imagination 'concat' would also work on other array types:
matrices and bundles.)
cheers,
sven