Actually clamp.([4,5,6,7],[0,0,0,0],[1,2,3,4]) is the right syntax for that
clamp.([4,5,6,7],[0,0,0,0],[1,2,3,4])