Question: CODE IN ERLANG Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability. (taken from google since

CODE IN ERLANG

Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability. (taken from google since someone felt the need to ask what ERLANG is)

CODE IN ERLANG Erlang is a programming language used to build massively

9. Function repeat that takes a list of integers and a list of nonnegative integers and returns a list that repeats the integers in the first list according to the numbers indicated by the second list; add the following test cases to the test file these test files also illustrate the logic of repetition to be followed repeat_1_test() -> (2, 2, 2, 2, 3) = labo5:repeat([1, 2, 3), (0, 4, 11). repeat_2_test() -> ( ) = lab05:repeat( [], [0, 4, 1]). repeat_3_test() -> ] = lab05:repeat( [1, 2, 3), []). repeat_4_test() -> (4,4) = lab05:repeat( [4,5,6), (2]). 9. Function repeat that takes a list of integers and a list of nonnegative integers and returns a list that repeats the integers in the first list according to the numbers indicated by the second list; add the following test cases to the test file these test files also illustrate the logic of repetition to be followed repeat_1_test() -> (2, 2, 2, 2, 3) = labo5:repeat([1, 2, 3), (0, 4, 11). repeat_2_test() -> ( ) = lab05:repeat( [], [0, 4, 1]). repeat_3_test() -> ] = lab05:repeat( [1, 2, 3), []). repeat_4_test() -> (4,4) = lab05:repeat( [4,5,6), (2])

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!