🧠 The Search-and-Select Pattern
🧠 The Search-and-Select Pattern If you zoom out and look at the big picture, you'll notice a recurring theme throughout this project: a love for abstraction and a flair for formalism. But this isn’t just a clever trick or a stylistic quirk — it reflects a unified design philosophy at the heart of the whole project. And that philosophy? Making programming actually easy — by embracing the kinds of patterns we already use in everyday reasoning. Let’s rewind a bit. The What class — from @fizzwiz/fluent — focuses on a special kind of function: multivalued functions , or functions that return iterables instead of single values. There are two rich ways to interpret this: Uncertainty — the function doesn’t yet know the answer, so it gives you a few possibilities to work with. Exploration — when the return values are of the same type as the input, the function becomes a kind of map: starting at one point, it shows you all the direct...