1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-10 00:36:40 +02:00

always search

This commit is contained in:
Justin Lin
2022-04-15 09:38:07 +08:00
parent 9599d5434c
commit 8cd1638a61

View File

@@ -8,8 +8,4 @@
*
**/
use <bsearch.scad>;
function has(lt, elem, sorted = false) =
sorted ? bsearch(lt, elem) != -1 :
search([elem], lt) != [[]];
function has(lt, elem) = search([elem], lt) != [[]];