Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /tests/trunk/bugs/tests.obsolete/bug213.2.sml
ViewVC logotype

View of /tests/trunk/bugs/tests.obsolete/bug213.2.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2460 - (download) (annotate)
Sat Apr 28 20:18:10 2007 UTC (12 years, 1 month ago) by gkuan
File size: 475 byte(s)
(* bug213.2.sml *)
(* Clausal function declaration goes off the trolley. *)

datatype 'cs $$$ = $ of 'cs | $$;

fun Fn1 ((c,p)::mtl) ({c = $$, p = $$}) =
  if (c,p) = (3,3)
  then
   { p = $ p,c = $ c}::(Fn1 mtl {c = $$, p = $$})
  else
   Fn1 mtl {c = $$, p = $$}
  | Fn1 ((c,_)::mtl) ({ c = $$ ,p = $ p}) =
    {p = $ p, c = $ c}::(Fn1 mtl {c = $$, p = $ p})
  | Fn1 ((_,p)::mtl) ({p = $$, c = $ c}) =
    {p = $ p, c = $ c}::(Fn1 mtl {p = $$, c = $ c})
  | Fn1 _  _ = [];

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0