wenima / data-structures

used for all data structure assignments
1 stars 0 forks source link

on branch dll in dbl_linked_list.py remove the check if the passed in value is an iterable #57

Open wenima opened 7 years ago

wenima commented 7 years ago

This if check is not necessary. If they pass in an empty iterable, e.g. empty list, it will iterate over nothing and do nothing with it. If it's not an iterable, you'll get the expected TypeError.

You currently have kind of a weird situation where this would work: DblLinkedList(True)

but this would not work: DblLinkedList(False)