deniok: (ржунимагу)
deniok ([personal profile] deniok) wrote2010-05-23 10:43 am
Entry tags:

Как грамотно именовать переменные

Понравились имена аргументов в GHCi-шной реализации функции isInfixOf:
isInfixOf               :: (Eq a) => [a] -> [a] -> Bool
isInfixOf needle haystack = any (isPrefixOf needle) (tails haystack)

:-)

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting