Saint Louis University |
Computer Science 1300/5001
|
Computer Science Department |
Topic: Recursion
Related Reading: Chapters 26 and 27
Due:
10:00am, Friday, 7 December 2018
Please make sure you adhere to the policies on academic integrity.
The chapter provides an implementation of
OurList.index that accepts a single value as a
parameter, with the public syntax
The index method of the built-in list class
accepts an additional optional parameter that is an index at
which the search for the value should begin, as in
Provide a new implementation of the OurList.index that includes such an optional parameter (with the default value of 0). You may assume that the parameter is a nonnegative integer.
Our implementation of the function