2 ms·
Looks about right to me. And in Ruby, the same general pattern is implemented with blocks: File.open("foo.txt", 'w') {|f| f.write("bar")}
by baddox 11y ago
Looks about right to me. And in Ruby, the same general pattern is implemented with blocks:
File.open("foo.txt", 'w') {|f| f.write("bar")}