Search Values of Array in "One Go"

Monte Goulding monte at appisle.net
Sat Aug 26 17:23:12 EDT 2017


> On 27 Aug 2017, at 5:57 am, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> This would be really useful. I'd suggest:
> 
> filter elements of tArray by tPath[each] is “baz”

Array paths don’t work like that. `each` here is the element and tPath is a path within it so it needs to be `each[tPath]` but I like `by`. Infact I couldn’t recall the syntax I liked for this when posting the email yesterday but now I remember it was `by` as it’s the same as sort.

A simpler example is:

filter lines of tList by item 1 of each >= 10

Cheers

Monte


More information about the Use-livecode mailing list