map_compact.rb
Ruby•Intermediário
Explorer
C40
C++40
C#40
Dart40
Go40
Java40
JavaScript40
Kotlin40
Objective-C40
Perl40
PHP40
Python40
R40
Ruby
Iniciante10
Intermediário10
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
Avançado10
Especialista5
Mestre5
Rust40
Shell40
Swift40
TypeScript40
map_compact.rb
Click to focus
1
2
3
results = items.map do |item|↵
process(item) if item.valid?↵
end.compact
0WPM•0%•0:00•0/72(0%)|Ln 1, Col 1
UTF-8•Ruby