Andy Melnikov (nponeccop) wrote,
Andy Melnikov
nponeccop

Феерия алгебраичности

Prelude> tail []
*** Exception: Prelude.tail: empty list
Prelude> take 1 []
[]
Вместе с тем
Prelude Test.QuickCheck Safe> quickCheck $ \a -> take 1 a ++ tailSafe a == a
+++ OK, passed 100 tests.
Subscribe

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments