1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-16 19:54:29 +02:00

don't care the last one

This commit is contained in:
Justin Lin
2022-03-18 09:24:42 +08:00
parent 7744b4e79c
commit 5c547351db
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ function _dedup(elems, leng, buckets, eq, hash, bucket_numbers) =
n_buckets_lt = [
for(i = 0, n_buckets = _dedup_add(buckets, [i, elems[i]], eq, hash, bucket_numbers), is_continue = i < end;
is_continue;
i = i + 1, is_continue = i < end, n_buckets = is_continue ? _dedup_add(n_buckets, [i, elems[i]], eq, hash, bucket_numbers) : n_buckets)
i = i + 1, is_continue = i < end, n_buckets = is_continue ? _dedup_add(n_buckets, [i, elems[i]], eq, hash, bucket_numbers) : undef)
n_buckets
]
)

View File

@@ -6,7 +6,7 @@ function _hashmap(kv_lt, leng, buckets, b_numbers, eq, hash) =
n_buckets_lt = [
for(i = 0, n_buckets = _hashmap_put(buckets, b_numbers, kv_lt[i][0], kv_lt[i][1], eq, hash), is_continue = i < end;
is_continue;
i = i + 1, is_continue = i < end, n_buckets = is_continue ? _hashmap_put(n_buckets, b_numbers, kv_lt[i][0], kv_lt[i][1], eq, hash) : n_buckets)
i = i + 1, is_continue = i < end, n_buckets = is_continue ? _hashmap_put(n_buckets, b_numbers, kv_lt[i][0], kv_lt[i][1], eq, hash) : undef)
n_buckets
]
)

View File

@@ -6,7 +6,7 @@ function _hashset(lt, leng, buckets, b_numbers, eq, hash) =
n_buckets_lt = [
for(i = 0, n_buckets = _hashset_add(buckets, b_numbers, lt[i], eq, hash), is_continue = i < end;
is_continue;
i = i + 1, is_continue = i < end, n_buckets = is_continue ? _hashset_add(n_buckets, b_numbers, lt[i], eq, hash) : n_buckets)
i = i + 1, is_continue = i < end, n_buckets = is_continue ? _hashset_add(n_buckets, b_numbers, lt[i], eq, hash) : undef)
n_buckets
]
)