Write an Oz program which returns the first element of a list and the last element of
Fantastic news! We've Found the answer you've been seeking!
Question:
Write an Oz program which returns the first element of a list and the last element of that list. For example, if the input is [2 ~5 3 ~1 6 ~3 9 4], the output should be 2#4, if the input is[4 ~2], the output should be4#~2, and if the input is [2], the output should be 2#2.
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: