mask_scale

This commit is contained in:
dzaima 2025-04-28 22:17:04 +03:00
parent a5c6e3271c
commit 291ff92c96

View File

@ -40,6 +40,8 @@ def mask_first{n} = {
def mask{x:X if any_int{x}} = tail{n, x}
def mask{0} = 1
}
def mask_scale{M if ~M{0}, sc} = M
def mask_scale{M if M{0}, sc} = mask_first{M{'count'}*sc}