In python, we can pass a function into another function like the example code below.
def digits(n):
return list(map(int, str(n)))
def digit_cube(n):
return list(map(lambda x: x ** 3, digits(n)))
Can the same be done in elixir? If yes, how?