Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
senex
· 3y ago · 0 comments
You could “yield” the record instead of constructing the list. This makes “read_portfolio” into an iterator instead of returning a list. Use a list comprehension or list constructor to convert the iterator to a list if needed.
Comments
No comments yet.
Better HN