Pearls
Pearls of Functional Algorithm Design by Richard Bird - Haskell Code
Install / Use
/learn @derekmcloughlin/PearlsREADME
pearls
Pearls of Functional Algorithm Design
These are the code examples that go with Richard Bird's Pearls of Functional Algorithm Design.
All the examples are working Haskell programs. For each I've included some short notes of my own on any issues in getting them to work.
- Chapter 1 - The Smallest Free Number
- Chapter 2 - A Surpassing Problem
- Chapter 3 - Improving on Saddleback Search
- Chapter 4 - A Selection Problem
- Chapter 5 - Sorting Pairwise Sums
- Chapter 6 - Making a Century
- Chapter 7 - Building a Tree with Minimum Height
- Chapter 8 - Unravelling Greedy Algorithms
- Chapter 9 - Finding Celebrities
- Chapter 10 - Removing Duplicates
- Chapter 11 - Maximum Non-Segment Sum
- Chapter 12 - Ranking Suffixes
- Chapter 13 - The Burrows Wheeler Transform
- Chapter 14 - The Last Tail
- Chapter 15 - All The Common Prefixes
Related Skills
clearshot
Structured screenshot analysis for UI implementation and critique. Analyzes every UI screenshot with a 5×5 spatial grid, full element inventory, and design system extraction — facts and taste together, every time. Escalates to full implementation blueprint when building. Trigger on any digital interface image file (png, jpg, gif, webp — websites, apps, dashboards, mockups, wireframes) or commands like 'analyse this screenshot,' 'rebuild this,' 'match this design,' 'clone this.' Skip for non-UI images (photos, memes, charts) unless the user explicitly wants to build a UI from them. Does NOT trigger on HTML source code, CSS, SVGs, or any code pasted as text.
openpencil
2.1kThe world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams. Design-as-Code. Turn prompts into UI directly on the live canvas. A modern alternative to Pencil.
openpencil
2.1kThe world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams. Design-as-Code. Turn prompts into UI directly on the live canvas. A modern alternative to Pencil.
ui-ux-pro-max-skill
59.8kAn AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
