Write in SML

Suppose that we will represent integers by a list of the reverse of the digits of these integers.
(Example 2854 → [4,5,8,2])

Write a function that takes an integer and returns its list representation and write another function that takes the list representation and returns the equivalent integer

Q&A Education