https://github.com/thealgorithms/elm
All Algorithms implemented in Elm
https://github.com/thealgorithms/elm
algorithms data-structures elm hacktoberfest
Last synced: about 2 months ago
JSON representation
All Algorithms implemented in Elm
- Host: GitHub
- URL: https://github.com/thealgorithms/elm
- Owner: TheAlgorithms
- License: mit
- Created: 2019-07-24T05:46:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-30T07:35:44.000Z (over 2 years ago)
- Last Synced: 2025-04-28T07:25:04.464Z (2 months ago)
- Topics: algorithms, data-structures, elm, hacktoberfest
- Language: Elm
- Homepage:
- Size: 21.5 KB
- Stars: 69
- Watchers: 5
- Forks: 37
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The Algorithms - Elm
[](https://gitter.im/TheAlgorithms)
### All algorithms implemented in Elm (for education)
These implementations are for learning purposes. They may be less efficient than the implementations in the Elm standard library.
## How to run
### Install run-elm
Run the following to install [run-elm](https://github.com/jfairbank/run-elm)
```shell script
$ npm install -g run-elm
```### Execute Elm
Every ELM file has default run in it, and can just be executed using run-elm
```shell script
$ run-elm src/Sorting/BubbleSort.elm
Sorting List: [4,23,6,78,1,54,231,9,12]
1,4,6,9,12,23,54,78,231
```Some files also have option to take arguments as input
```shell script
$ run-elm src/Sorting/BubbleSort.elm 23 45 76 34 65 98
Sorting List: [23,45,76,34,65,98]
23,34,45,65,76,98
```**OR**
if you want to run all the programs with default arguments
```shell script
$ run-elm src/Main.elm
Sorting List: [4,23,6,78,1,54,231,9,12]
Running Insertion sort: "1,4,6,9,12,23,54,78,231"
Sorting List: [4,23,6,78,1,54,231,9,12]
Running Bubble sort: "1,4,6,9,12,23,54,78,231"
```## Community Channel
We're on [Gitter](https://gitter.im/TheAlgorithms)! Please join us.