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