Another Version:
Mix drained pineapple and marshmallows, refrigerate overnight. Cook pineapple juice, sugar, flour, egg and 1 1/2 T. with vinegar until thick. Refrigerate overnight. Mix cool whip with all other ingredients including apples and nuts.