J'ai beaucoup plus pratiqué Caml, et a priori, Lisp ne possède pas le typage fort de OCaml/Camllight
Dans cette doc http://www.algo.be/cl/TEE-lisp/318639977372240/index.htm , je trouve un algo de base que je traduirai ainsi en caml :
(DEFUN SORT-ELEMENTS-BY-INDEX (ELEMENTS WAVELENGTH)
(SORT
ELEMENTS
#'(LAMBDA (ELEMENT-1 ELEMENT-2)
(< (ELEMENT-REFRACTIVE-INDEX ELEMENT-1 WAVELENGTH)
(…)