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
Can be managed through jspm, duo, component, bower, ender, jam, spm, and npm.
jspm install github:aureooms/js-splitting
# or
jspm install npm:@aureooms/js-splitting
No install step needed for duo!
component install aureooms/js-splitting
bower install @aureooms/js-splitting
ender add @aureooms/js-splitting
jam install @aureooms/js-splitting
spm install @aureooms/js-splitting --save
npm install @aureooms/js-splitting --save
let splitting = require( "github:aureooms/js-splitting" ) ;
// or
import splitting from '@aureooms/js-splitting' ;
let splitting = require( "aureooms/js-splitting" ) ;
let splitting = require( "@aureooms/js-splitting" ) ;
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.
require( [ "@aureooms/js-splitting" ] , function ( splitting ) { ... } ) ;