![]() ![]() To fix this, we need to stop ignoring the returned list. We call foo + 2 and are given another new list back, which we ignore again. ![]() When we call foo + 1 we are given a new list back that we ignore. So this now explains why, in our original example, we were left looking at an empty list. Here’s the important thing to remember: it doesn’t modify the original list.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |