Question: Please answer this in Erlang : 1) Function removeMods that takes two arguments: a list and a numerical value, and returns the new list constructed
Please answer this in Erlang:
1) Function removeMods that takes two arguments: a list and a numerical value, and returns the new list constructed by removing all original list elements for which the result of applying the incoming second argument as the modulus operand results in a zero. For example, if the original list contains [2, 3, 6], and the second argument is 2, then [3] is returned. Assume all incoming arguments will be valid for this operation (no need to error check); you are NOT allowed to use ++ or built-in functions or list 2 comprehension; add appropriate test cases to the test file that use true matching pattern (i.e. the other method that does NOT use assertEqual)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
