Parameters into function: use GA.
Function/program: use GP.
(speaking very roughly, that's the historical distinction between them)
Parameters into function: use GA.
Function/program: use GP.
(speaking very roughly, that's the historical distinction between them)