Solution: Generics
The solution for writing generics challenge.
We'll cover the following
Solution
The generic method implementation is similar to the approach we discussed in the previous lessonwhich returns the last item. However, in this case, it retrieves the first item items.first
from the list.
Get hands-on with 1400+ tech skills courses.