Which is your preferred ruby block syntax for function(obj)?

  • Created by Daniel 1 year, 6 months ago

Indicate your preferences below or view the results without voting.



map{ |x| JSON.parse(x) }

map{ |x| transform(x) }

map{ JSON.parse(_1) }

map{ transform(_1) }

If you think a reasonable candidate is missing, provide it below and rate it.