This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function quickSort(array) { | |
const length = array.length | |
// If length is smaller than two the array is already sorted | |
if (length < 2) { | |
return array | |
} | |
// Select the pivot and split the rest | |
const [pivot, ...rest] = array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APP_NAME := my_awesome_app | |
all: compile | |
compile: clear | |
@cp src/$(APP_NAME).app ebin/ | |
@erlc -pa ebin/ -o ebin/ src/*.erl | |
compile_test: compile | |
@erlc -pa ebin/ -o ebin/ test/*.erl |