Hello, I start learning ELM and i need help with syntax.

I write this javascript code and i want to convert it to ELM lang.

can anyone help me with that please

function computeNextValue (x){

list = numberToArray(x);

sum = add(list);

let y = x + sum;

return y;

}

function numberToArray(number) {

let array = number.toString().split("");//stringify the number, then make each digit an item in an array

return array.map(x => parseInt(x));//convert all the items back into numbers

}

function add(list){

let sum = 0;

for (var i = 0; i < list.length; i++) {

interm = parseInt(list[i]);

sum += interm;

}

return(sum);

}