let just_one l =
match l with
| [] -> false
| _::[] -> true
| _::_::_ -> false
let () = assert (just_one [1, 2, 3] = false);;
bGV0IGp1c3Rfb25lIGwgPSAKCW1hdGNoIGwgd2l0aAoJCXwgW10gCQktPiBmYWxzZQoJCXwgXzo6W10gCS0+IHRydWUKCQl8IF86Ol86Ol8gCS0+IGZhbHNlCiAKbGV0ICgpID0gYXNzZXJ0IChqdXN0X29uZSBbMSwgMiwgM10gPSBmYWxzZSk7Ow==