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

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
isabelle-dev mailing list
[email protected]
https://mailmanbroy.informatik.tu-muenchen.de/mailman/listinfo/isabelle-dev

Reply via email to