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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!