UNPKG

jungle-organic

Version:

The organic programming framework

25 lines (19 loc) 477 B
namespace Jungle.Inv { export function retract(obj, arg){ return arg } // export const revolving_choice = Preform({ // options:T("Array") // index:{} // }) // // export const weighted_choice = Preform({ // options:T("Array"), // weights:T("Array") // },{ // r(obj){ // let choice = Util.weightedChoice(obj.weights); // return obj.options[choice]; // } // }) }