Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下python代码的等价物是什么
map(func, list)
在瓦拉?
没有这样的捷径。你必须做一个foreach:
var res = new YourList (); foreach (var elem in list) res.add (func (elem));