In a past codegolf contest you had to parse some input consisting of L, S, R for left, straight, right to follow a path.
I used complex numbers and the fact that L, S, R respectively have ASCII codes 82, 83, 76 in the identities
i^(82 + 1) = -i
i^(83 + 1) = 1
i^(76 + 1) = i
to get a very compact path reconstruction.