From 92190fbb21757918e6b2c3165d582dc3bdc6b6fa Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 17 Apr 2022 19:53:21 +0800 Subject: [PATCH] rename --- src/util/_impl/_dedup_impl.scad | 6 +++--- src/util/_impl/_sorted_impl.scad | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/util/_impl/_dedup_impl.scad b/src/util/_impl/_dedup_impl.scad index 6bb927d6..ba9af942 100644 --- a/src/util/_impl/_dedup_impl.scad +++ b/src/util/_impl/_dedup_impl.scad @@ -35,10 +35,10 @@ function _add(buckets, bucket, i_elem, b_idx) = function before_after(lt, pivot, leng, before = [], after = [], j = 1) = j == leng ? [before, after] : - let(cond = lt[j][0] < pivot[0]) + let(is_less = lt[j][0] < pivot[0]) before_after(lt, pivot, leng, - cond ? [each before, lt[j]] : before, - cond ? after : [each after, lt[j]], + is_less ? [each before, lt[j]] : before, + is_less ? after : [each after, lt[j]], j + 1 ); diff --git a/src/util/_impl/_sorted_impl.scad b/src/util/_impl/_sorted_impl.scad index 80259dd0..7d63d9b8 100644 --- a/src/util/_impl/_sorted_impl.scad +++ b/src/util/_impl/_sorted_impl.scad @@ -1,9 +1,9 @@ function before_after(lt, pivot, less, leng, before = [], after = [], j = 1) = j == leng ? [before, after] : - let(cond = less(lt[j], pivot)) + let(is_less = less(lt[j], pivot)) before_after(lt, pivot, less, leng, - cond ? [each before, lt[j]] : before, - cond ? after : [each after, lt[j]], + is_less ? [each before, lt[j]] : before, + is_less ? after : [each after, lt[j]], j + 1 );