fork download
  1. let just_one l =
  2. match l with
  3. | [] -> false
  4. | _::[] -> true
  5. | _::_::_ -> false
  6.  
  7. let () = assert (just_one [1, 2, 3] = false);;
Runtime error #stdin #stdout #stderr 0s 4172KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Fatal error: exception Assert_failure("prog.ml", 7, 9)