Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.haskell > #212
| From | Paul Rubin <no.email@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.haskell |
| Subject | Re: Can Haskell compare functions? |
| References | <3fafb2e6-b33c-4e98-a694-646c8acc5fe0@wj4g2000pbc.googlegroups.com> <7xehs0auhb.fsf@ruckus.brouhaha.com> |
| Date | 2012-04-07 00:18 -0700 |
| Message-ID | <7xehs0dn6m.fsf@ruckus.brouhaha.com> (permalink) |
| Organization | Nightsong/Fort GNOX |
Paul Rubin <no.email@nospam.invalid> writes: > flt a b c n = n < 3 || a^n + b^n /= c^n > > flt a b c n is true iff (a,b,c,n) is not a counterexample to Fermat's > Last Theorem. > > Is flt the same function as (\_ _ _ _ -> True) ? > It's unreasonable to expect Haskell to figure that out. Actually, QuickCheck probably could have figured it out: f 1 (-1) 0 3 => False but you get the idea ;-).
Back to comp.lang.haskell | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Can Haskell compare functions? ultranewb <pineapple.link@yahoo.com> - 2012-04-06 23:48 -0700
Re: Can Haskell compare functions? Paul Rubin <no.email@nospam.invalid> - 2012-04-07 00:09 -0700
Re: Can Haskell compare functions? Paul Rubin <no.email@nospam.invalid> - 2012-04-07 00:18 -0700
Re: Can Haskell compare functions? Roman W <bloody_rabbit@gazeta.pl> - 2012-04-18 02:40 -0700
Re: Can Haskell compare functions? Paul Rubin <no.email@nospam.invalid> - 2012-04-18 22:23 -0700
csiph-web