Partially compiled function