https://github.com/bronzdoc/citrusbyte-demo
Citrusbyte-demo
https://github.com/bronzdoc/citrusbyte-demo
Last synced: 7 months ago
JSON representation
Citrusbyte-demo
- Host: GitHub
- URL: https://github.com/bronzdoc/citrusbyte-demo
- Owner: bronzdoc
- Created: 2016-04-14T05:32:43.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-14T06:00:15.000Z (about 10 years ago)
- Last Synced: 2025-02-18T06:42:41.662Z (over 1 year ago)
- Language: Ruby
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Citrusbyte test [](https://travis-ci.org/bronzdoc/citrusbyte-demo)
A little demo for Citrusbyte, implementation of the flatten method
## Usage
```ruby
a = [[1], 2, [[3, 4], 5], [[[]]], [[[6]]], 7, 8, []]
a.custom_flatten #=> [1, 2, 3, 4, 5, 6, 7, 8]
```
## Run the example
```
ruby example.rb
```