Write while loop equivalent in elixir

Specifically it returns the atom nil.

Depends on the back-end, if the back-end is, say LLVM, then it compiles to something that looks recursive but it bases it on blocks instead of function calls, similar concept though.