Interesting thoughts there.
I am writing a deep neural network lib in scala as part of my DQN implementation. It's developed in the FP paradigm with some type safety. If anyone is interested, the code is here. https://github.com/A-Noctua/glaux Right now only feedforward and convolution with Relu are implemented, no documentation either. But would love to collaborate with anyone also interested in the area.