Skip to content

Commit 077f335

Browse files
committed
split example over multiple lines
Signed-off-by: Yury Kaliada <fut.wrk@gmail.com>
1 parent 5abd893 commit 077f335

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

materials/0 - Ruby vs C/winner

16 Bytes
Binary file not shown.

materials/0 - Ruby vs C/winner.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
(1..40).to_a.shuffle.select{|i| i % 2 == (Time.now.to_i.odd? ? 0 : 1) }.shuffle.select.with_index{|num, i| i % 2 == (Time.now.to_i.odd? ? 0 : 1)}.shuffle.sample
1+
puts (1..40).
2+
to_a.
3+
shuffle.
4+
select{|i| i % 2 == (Time.now.to_i.odd? ? 0 : 1) }.
5+
shuffle.
6+
select.with_index{|num, i| i % 2 == (Time.now.to_i.odd? ? 0 : 1)}.
7+
shuffle.
8+
sample

0 commit comments

Comments
 (0)