mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-04 21:02:27 +08:00
AcceptIf returns another function of the same signature as the apply function but also includes a bool value to indicate success or failure. A predicate function that takes an argument of type T and returns a bool. An apply function that also takes an argument of type T and returns a modified value of the same type.