HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by christianmann | Hacker News Reader
Parent
Full thread
christianmann
·
Or you could do
def munge(data, convert=lambda x: x)
View on HN
ah-
·
This is C++ style thinking, but that way it has to copy the array and run that function on every element. If it supports none it can just return the original data.
Reply on news.ycombinator.com