{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "Select",
 "ref": "Select#decf",
 "hash": "sema:Select#mh:SHA-256:decf9c05490dc5e6b372c5dbb7d89d2285fdd832714fc992b10fdbd6b7c2c2e3",
 "stub": "decf",
 "layer": "Infrastructure",
 "type": "Primitives",
 "summary": "Generic selection of items from a set based on criteria",
 "mechanism": "Deterministic Filter. Applies a Predicate Function P(x) to every element in Input Set S. Returns a new Subset S' containing only elements where P(x) is True. It filters a set based on specific inclusion criteria.",
 "invariants": [
  "Predicate Truth: For all x in Output, Criterion(x) must be True.",
  "Subset Property: Output must be a subset of Input (no new items created).",
  "Determinism: Same input set + same criteria = same output set."
 ],
 "parameters": [
  {
   "name": "limit",
   "type": "Integer",
   "range": "[1, 10000]",
   "description": "Max items to return"
  },
  {
   "name": "strategy",
   "type": "Enum",
   "range": "{Filter, First}",
   "description": "Default: Filter. Random sampling is excluded — it would violate the Determinism invariant."
  }
 ],
 "signature": [],
 "preconditions": [
  "Criterion is decidable for item type",
  "Input set is iterable"
 ],
 "postconditions": [
  "Subset returned"
 ],
 "failure_modes": [
  "Empty Result: No items satisfy the criterion (returns empty set).",
  "Predicate Error: The criterion function fails or throws an error for specific inputs."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "Select",
 "builds_on": [],
 "related": [],
 "used_by": [
  {
   "slug": "Act",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Act"
  },
  {
   "slug": "Ballot",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Ballot"
  },
  {
   "slug": "BeamSearch",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/BeamSearch"
  },
  {
   "slug": "Card",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Card"
  },
  {
   "slug": "DataMinimization",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/DataMinimization"
  },
  {
   "slug": "Decision",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Decision"
  },
  {
   "slug": "OODA",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/OODA"
  },
  {
   "slug": "Rally",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Rally"
  },
  {
   "slug": "Rank",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Rank"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/Select",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/Select.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
