Porting José Paumard's functionnal programming examples in jdk8 to Erlang