My omnium-gatherom of scripts and source code.
1#pragma once
2#include <algorithm>
3#include <numeric>
4#include <ranges>
5#include <iterator>
6#include <concepts>
7#define let auto const
8#define func auto
9namespace ra = std::ranges;
10namespace vi = std::ranges::views;
11
12func not1(auto&& f)
13{
14 return [f](auto const& x) { return not f(x); };
15}