I’m not really happy with my solution yet, I feel it could be simpler. I’d rather keep functions that do one thing, though, and avoid decompose_factorial_into_factors_and_group(X, Y, Z, []) or something. Hence I didn’t save on the single-argument versions, or combine unrelated functions.
I’m learning Erlang.
I’m not really happy with my solution yet, I feel it could be simpler. I’d rather keep functions that do one thing, though, and avoid
decompose_factorial_into_factors_and_group(X, Y, Z, [])
or something. Hence I didn’t save on the single-argument versions, or combine unrelated functions.Try with:
Too bad @stevemoon didn’t do this one, I would have liked to compare. :-)