simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

partitionSelect.js (420B)


      1 export var partitionSelectDocs = {
      2   name: 'partitionSelect',
      3   category: 'Matrix',
      4   syntax: ['partitionSelect(x, k)', 'partitionSelect(x, k, compare)'],
      5   description: 'Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.',
      6   examples: ['partitionSelect([5, 10, 1], 2)', 'partitionSelect(["C", "B", "A", "D"], 1)'],
      7   seealso: ['sort']
      8 };