export module coral.functional; import coral; export namespace coral { /** * Helpful wrapper utility for using in chainable conditionals like [coral::expected::map] to check if a `bool` * is `true` without writing a lambda. */ template constexpr auto equality_predicate(value reference_value) { return [reference_value](value comparing_value) -> bool { return comparing_value == reference_value; }; } }