[isabelle-dev] cs. 39fe503602fb
Florian Haftmann
florian.haftmann at informatik.tu-muenchen.de
Wed Feb 1 20:31:23 CET 2012
When having a look at
http://isabelle.in.tum.de/repos/isabelle/rev/39fe503602fb
it came to my mind that this might be implemented more generally, e.g.
the_aux :: 'a list => 'a
the_aux [x] = x
the :: 'a list => 'a
the xs = the_aux (remdups xs)
which would yield a Match exception without any low-level tinkering.
(of course, the situation is more complicated with enum and such, but
this example illustrated the principle: native pattern match failure to
express non-uniqueness).
Florian
--
PGP available:
http://home.informatik.tu-muenchen.de/haftmann/pgp/florian_haftmann_at_informatik_tu_muenchen_de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <https://mailmanbroy.informatik.tu-muenchen.de/pipermail/isabelle-dev/attachments/20120201/703c3aad/attachment.asc>
More information about the isabelle-dev
mailing list