openscad/openscad — pull request #82 by kintel (2012-02-04 13:35:30+00:00)
Title: Search function from Andrew Plumb

From Andrew's original issue:

I was in need of a search function similar to lookup but for searching strings and lists for matches and returning the index value(s) matched. I took a stab at it and came up with this builtin_search() in func.cc.

I've been exercising my code with this testdata/scad/misc/search-tests.scad

Please consider pulling it into the master branch. Thanks!