1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-03-14 02:59:42 +01:00
This commit is contained in:
Justin Lin 2022-03-04 21:01:23 +08:00
parent b89c2d90d3
commit a8e903ccb7

View File

@ -1,4 +1,3 @@
use <util/flat.scad>;
use <util/has.scad>;
use <util/rand.scad>;
use <util/some.scad>;
@ -13,7 +12,7 @@ use <util/set/hashset_has.scad>;
function weights_of_tiles(sample) =
let(
symbols = flat(sample),
symbols = [for(row = sample) each row],
leng = len(symbols)
)
_weights_of_tiles(hashmap(number_of_buckets = leng), symbols, leng);