Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe authored Jan 26, 2024
1 parent 46448fd commit 212c070
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def find(argument, lambda_arg)

MemoryProfiler.report do
100.times do
1.upto(n).select(&find_with_proc(50))
1.upto(n).select(&find_with_proc(50))
end
end.pretty_print

Expand All @@ -28,7 +28,7 @@ def find(argument, lambda_arg)

MemoryProfiler.report do
100.times do
1.upto(n).select { find(50, _1) }
1.upto(n).select { |i| find(50, i) }
end
end.pretty_print

Expand Down Expand Up @@ -115,4 +115,3 @@ def find(argument, lambda_arg)
# -----------------------------------
# 200 Array
# 100 Enumerator
#

0 comments on commit 212c070

Please sign in to comment.