[FEATURE] implement f-package-foreach