Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/murodjon000/enumerables

This project is an attempt to clone the enumerable methods of the Ruby programming language.
https://github.com/murodjon000/enumerables

ruby

Last synced: about 1 month ago
JSON representation

This project is an attempt to clone the enumerable methods of the Ruby programming language.

Awesome Lists containing this project

README

        

# Enumerable Methods
> Project to re-build a few methods of Ruby Language.


Methods based on Enumerable module and Array class.

As described on documentation here [Enumerable](https://ruby-doc.org/core-2.7.0/Enumerable.html)
and [Array](https://ruby-doc.org/core-2.4.1/Array.html#method-i-each)

[Inject](https://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/enum.c?view=markup&pathrev=54162)

## Content

* [Requirements](#requirements)
* [Built With](#built-with)
* [Live Demo](#live-demo)
* [Quick Start](#quick-start)
* [Dependencies](#dependencies)
* [Contributing](#contributing)
* [Acknowledgments](#acknowledgments)
* [Author](#author)
* [License](#license)

## Requirements


    Features


    Re-make these methods and match with documentation expected behavior


  • .each (Only one from Array)

  • .each_with_index

  • .select (Filter like)

  • .all?

  • .any?

  • .none?

  • .count

  • .map

  • .inject (Reduce like)


    Additional features


  • Create .multiply_els to test .inject

  • Should multiply all the elements of array together


  • Extends .map to accept procs

### Built With

- Ruby Language

- Git, Github and VScode

## Live Demo

[Run on Repl.it](https://repl.it/@Murodjon0103/myenumberables#main.rb)

## Quick Start

To get a local copy use:

```js
git clone https://github.com/Murodjon000/enumerables.git
```
## Author

👤 **Murodjon000**

- GitHub: [@Murodjon000](https://github.com/Murodjon000)
- Twitter: [@Murodjon](https://twitter.com/Murodjo91836152)
- LinkedIn: [murodjon-tursunpulatov](https://www.linkedin.com/in/murodjon-tursunpulatov-5189481b3/)

### Dependencies

Ruby 2.5.5

### Contributing

Contributions, issues and feature requests are welcome!

You can do it on [issues page](issues/).

## Acknowledgments

A special thanks for the code reviewers

### License

Creative Commons