Add ruby arrays notes
This commit is contained in:
parent
bb4629f796
commit
38977a1836
3 changed files with 9 additions and 0 deletions
|
@ -12,6 +12,8 @@
|
|||
- [Rust](./dev/rust/main.md)
|
||||
- [serde](./dev/rust/serde.md)
|
||||
- [Testing](./dev/rust/testing.md)
|
||||
- [Ruby](./dev/ruby/main.md)
|
||||
- [arrays](./dev/ruby/arrays.md)
|
||||
- [Web](./dev/web/main.md)
|
||||
- [front](./dev/web/front/main.md)
|
||||
- [babel and babel-preset-stage-2](./dev/web/front/babel-preset-stage-2.md)
|
||||
|
|
6
src/dev/ruby/arrays.md
Normal file
6
src/dev/ruby/arrays.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Check if all array elements are equals
|
||||
|
||||
```ruby
|
||||
arr = [0, 0, 0, 0, 0, 0, 0]
|
||||
puts true if arr.uniq.length == 1
|
||||
```
|
1
src/dev/ruby/main.md
Normal file
1
src/dev/ruby/main.md
Normal file
|
@ -0,0 +1 @@
|
|||
# Ruby
|
Loading…
Reference in a new issue