This website requires JavaScript.
Explore
Help
Sign In
papey
/
brain
Watch
1
Star
0
Fork
You've already forked brain
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
2b242e2254
brain
/
src
/
dev
/
ruby
/
arrays.md
212 B
Raw
Blame
History
Playing with arrays
Check if all array elements are equals
arr
=
[
0
,
0
,
0
,
0
,
0
,
0
,
0
]
puts
true
if
arr
.
uniq
.
length
==
1
Array includes a sub array
(
subarray
&
array
)
==
array