Text this: Functional programming paradigms in reinforcement learning problems