I wrote a mini blog post on how I did vectors in #ocaml using a simple module functor. I shy away from using functors in general but it felt kinda nice and it is an easy to understand domain to teach others how they can be used.

https://blog.joshrowe.dev/posts/functors-for-linear-alg-operations/

Functors for N-dimension Vectors Operations