mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-06 05:42:25 +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.
4.4 KiB
4.4 KiB