Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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)
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started