block_yield.rb
Ruby•中級
Explorer
C40
C++40
C#40
Dart40
Go40
Java40
JavaScript40
Kotlin40
Objective-C40
Perl40
PHP40
Python40
R40
Ruby
初級10
中級10
block_yield.rb
map_compact.rb
hash_transform.rb
case_when.rb
module_include.rb
proc_lambda.rb
rescue_inline.rb
enumerable_chain.rb
keyword_args.rb
array_zip.rb
上級10
エキスパート5
マスター5
Rust40
Shell40
Swift40
TypeScript40
block_yield.rb
Click to focus
1
2
3
4
5
def with_timing↵
start = Time.now↵
yield↵
puts "Took #{Time.now - start}s"↵
end
0WPM•0%•0:00•0/81(0%)|Ln 1, Col 1
UTF-8•Ruby