Your concrete example will work if you replace begin with let, thus creating a local scope for spl.
But this is only a solution when the variable is only needed inside the cell, not outside.
11 Likes