6 ms·
Swift closure syntax, at least in <= 2.0, made for awkward API calls, since it wasn’t clear whether inline or after closures were used. In Ruby, a.map(&:s
by himom 8y ago
Swift closure syntax, at least in <= 2.0, made for awkward API calls, since it wasn’t clear whether inline or after closures were used.
In Ruby,
a.map(&:succ)
- steveklabnik 8y agoIf you have a named function, rust lets you do a.map(succ) as well, since functions can be used where closures can, as long as the types work.
- jeffmcmahan 8y agoSame in JS