Question: Question 1 12 pts Using the function template below type and complete a working function. Make sure your function conforms to the instructions given in

Question 1 12 pts Using the function template below type and complete a working function. Make sure your function conforms to the instructions given in the comments. [hint: copy and paste code template to save time] /* This function should take one parameter - a Vector of String values. The function should return a new Vector that contains only the elements of original list that have an even length (0, 2, 4, ..... This new list may contain duplicates if the original list contained duplicates. For example, if the list contains the values [Think", "like", "a", "proton", "Always", "positive"] then the new list should contain the values ["like", "proton", "Always", "positive"]. The original list must NOT be changed by this function. */ onlyEven { }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
