Preheat oven to 325 F. Butter 1-quart casserole or souffle dish. Sift together flour, baking powder and salt. Beat egg and sugar until light and fluffy. Add flour mixture and blend well. Fold in apple, nuts and vanilla. Spoon into prepared dish and bake 30 minutes. Serve pudding warm with whipped cream or ice cream.