4 ms·
> pure (n, guard (factor /= n) $> factor) Returns a tuple: Left side is n, right side is (Just factor) if factor is not n, or Nothing if it is.
by mrkeen 2y ago
> pure (n, guard (factor /= n) $> factor)
Returns a tuple: Left side is n, right side is (Just factor) if factor is not n, or Nothing if it is.