Azienda coinvolta
Write an append function in OCaml. (never used OCaml before)
Anonimo
let rec append lst el = match lst with | [] -> [el] | head :: tail -> head :: append tail el;;
For a tail recursive answer, let append list el = List.rev(el::List.rev(list))
Non lasciarti sfuggire opportunità e informazioni privilegiate seguendo le aziende dove vorresti lavorare.
Ricevi suggerimenti e aggiornamenti personalizzati avviando le tue ricerche.