mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 17:24:20 +02:00
always search
This commit is contained in:
@@ -8,8 +8,4 @@
|
|||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
|
|
||||||
use <bsearch.scad>;
|
function has(lt, elem) = search([elem], lt) != [[]];
|
||||||
|
|
||||||
function has(lt, elem, sorted = false) =
|
|
||||||
sorted ? bsearch(lt, elem) != -1 :
|
|
||||||
search([elem], lt) != [[]];
|
|
Reference in New Issue
Block a user