Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b148ecb

Browse files
author
Leo Silva Souza
committed
use old lambda syntax
1 parent 49a1d8f commit b148ecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2018/07_2/ruby/leovano.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
steps_current.sort!
2424
steps_current.uniq!
2525

26-
is_ready = ->(task) { (dependencies[task] - steps_done).empty? }
26+
is_ready = lambda { |task| (dependencies[task] - steps_done).empty? }
2727
workers += steps_current
2828
.select(&is_ready)
2929
.take(MAXWORKERS - workers.size)

0 commit comments

Comments
 (0)