0.0.1 • Published 9 years ago
webppl-array-utils v0.0.1
webppl-array-utils
This package includes several array utility functions that were removed from core WebPPL at version 0.8:
ringForward
ringBackward
mapPairs2
mapPairsC
mapPairsNC
mapReduce
mapReduce1
insertAt
removeAt
replaceAt
drop
take
dropWhile
takeWhileInstallation
To globally install webppl-array-util, run:
mkdir -p ~/.webppl
npm install --prefix ~/.webppl webppl-array-utilUsage
Once installed, you can make the functions in this package available
to program.wppl by running:
webppl program.wppl --require webppl-array-utilsTests
Run the tests with:
npm run test0.0.1
9 years ago