It "understands" (limited sense of the word). You can ask it for very complex functions. Specially when working iteratively. Before ChatGPT, I used the edit models on Open AI playground (spring 2022+) and I wrote some pretty sop