Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.06 KB

File metadata and controls

43 lines (35 loc) · 1.06 KB

Algory

An Auto-Curried General purpose library composed of algorithms and data structures for JavaScript, TypeScript and Node.js

How to Import libraries

Import all the function in TypeScript using import keyword:

import * as λ from 'algory'
λ.sumOfCubes(2, 3)
λ.sumOfCubes(2)(3)

Import specific functions in TypeScript using import keyword:

import { mergeSort, avgLst } from 'algory'
const arr = mergeSort([4, -32, 12, 0, 1, 44, 3])
const arr2 = avgLst([4, -32, 12, 0, 1, 44, 3])

Import all functions in TypeScript using require keyword:

const λ = require('algory')
λ.sumOfCubes(2, 3))
λ.sumOfCubes(2)(3)

Import all functions in JavaScript using require keyword:

const λ = require('algory')
λ.sumOfCubes(2, 3))
Code Health
  • The project is written in TypeScript
  • Code Coverage: 100%
License
  • This project is licensed under the terms of the MIT license.
Contributors
Anurag Muthyam <anu.drumcoder@gmail.com>