Anyway to codegolf this down:
x
1 0 3 0 3 0 2
+/x-⍨(⌈\⌊{⌽⌈\⌽⍵})x
6
Specifically hoping to remove the {...⍵} and the second reference to "x"
x
1 0 3 0 3 0 2
+/x-⍨(⌈\⌊{⌽⌈\⌽⍵})x
6
Specifically hoping to remove the {...⍵} and the second reference to "x"