logo CodeStepByStep logo

Mirror

Language/Type: VB List collections

Write a function named Mirror that accepts a List of strings as a parameter and produces a Mirrored copy of the list as output, with the original values followed by those same values in the opposite order. For example, if a List variable named list contains the values {"a", "b", "c"}, after a call of Mirror(list) it should contain {"a", "b", "c", "c", "b", "a"}.

Function: Write a VB function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.