core: use `setitem` operator in pdcalc funcs.