Sha256: e10be85797b51ccda89a57305813146492abdb6b02f06a138ef45b7599a79648
Contents?: true
Size: 306 Bytes
Versions: 1
Compression:
Stored size: 306 Bytes
Contents
module CFlow class UntilTrueLoop def initialize(condition_proc:, loop_proc:) @loop_proc = loop_proc @condition_proc = condition_proc end def call(input) until @condition_proc.call(input) do input = @loop_proc.call(input) end input end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bsielski_control_flow-1.0.0 | lib/c_flow/until_true_loop.rb |