Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: