Skip to content

probmods/webppl-array-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
takeWhile

Installation

To globally install webppl-array-util, run:

mkdir -p ~/.webppl
npm install --prefix ~/.webppl webppl-array-util

Usage

Once installed, you can make the functions in this package available to program.wppl by running:

webppl program.wppl --require webppl-array-utils

Tests

Run the tests with:

npm run test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published