Skip to content

data-structures-and-algorithms/splitting

Repository files navigation

Splitting code bricks for JavaScript. Parent is aureooms/js-algo.

let pivot = splitting.hoare( predicate , array , left , right ) ;

for ( let k of itertools.range(  left , pivot , 1 ) ) predicate( array[k] ) ; // 0
for ( let k of itertools.range( pivot , right , 1 ) ) predicate( array[k] ) ; // 1

License NPM version Bower version Build Status Coverage Status Dependencies Status devDependencies Status Code Climate NPM downloads per month GitHub issues Inline docs

Can be managed through jspm, duo, component, bower, ender, jam, spm, and npm.

Install

jspm

jspm install github:aureooms/js-splitting
# or
jspm install npm:@aureooms/js-splitting

duo

No install step needed for duo!

component

component install aureooms/js-splitting

bower

bower install @aureooms/js-splitting

ender

ender add @aureooms/js-splitting

jam

jam install @aureooms/js-splitting

spm

spm install @aureooms/js-splitting --save

npm

npm install @aureooms/js-splitting --save

Require

jspm

let splitting = require( "github:aureooms/js-splitting" ) ;
// or
import splitting from '@aureooms/js-splitting' ;

duo

let splitting = require( "aureooms/js-splitting" ) ;

component, ender, spm, npm

let splitting = require( "@aureooms/js-splitting" ) ;

bower

The script tag exposes the global variable splitting.

<script src="bower_components/@aureooms/js-splitting/js/dist/splitting.min.js"></script>

Alternatively, you can use any tool mentioned here.

jam

require( [ "@aureooms/js-splitting" ] , function ( splitting ) { ... } ) ;