MDLD/primitive function (R)