105 C++ Algorithms in 1 line* of Raku (*each)
summary
Implements most of the C++ <algorithm> header (~105 items with a few bonuses) as compact Raku idioms, claiming many algorithms need no new functions because map + Empty already yields filter_map. Uses concrete tools: ziptail (zip with skip), meta-operators (zip: <, ==), reduce with race/hyper for parallelism, classify/binary-filter for partition/mismatch, sequences, regex and Unicode set operators. Demonstrates one-line implementations, notes where semantics differ, and shows these compositions are concise, transparent and practically working replacements.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 0:17Title
- 2:05FilterMap
- 5:40The Problem
- 8:00Goals
- 9:17Why C
- 16:00Ziptail
- 19:33Binary Filter
- 32:20Raku Symbols
- 35:57C Plus Algorithms
- 44:29Raku Permutations
- 46:33Sorting
- 49:42SortedUntil
- 51:24adjacentdifference
- 55:40binaryfilter
related talks
57mAlgorithms & Combinators
01h 09mThe Definitive Guide to Functional Programming in Cpp
01h 19mRappel: Compose Algorithms, Not Iterators - Google's Alternative to Ranges
38mWhat's New In C++23
54m"std::accumulate: Exploring an Algorithmic Empire"
01h 33mComposition Intuition II
01h 31mFunctional Programming in Modern C++: The Imperatives Must Go!
04mGeneralized fold expressions
