map vs list; why different behaviour?
map vs list; why different behaviour? Question: In the course of implementing the "Variable Elimination" algorithm for a Bayes’ Nets program, I encountered an unexpected bug that was the result of an iterative map transformation of a sequence of objects. For simplicity’s sake, I’ll use an analogous piece of code here: >>> nums = [1, …