Given the list
[One, Two, Three, Four, Five], fetch the third element (
'Three')
ocaml let third = List.nth [ "One"; "Two"; "Three"; "Four"; "Five" ] 3;;
let third = List.nth [ "One"; "Two"; "Three"; "Four"; "Five" ] 3;;
Submit a new solution for
ocaml
There are 20 other solutions in
additional languages (
cpp,
csharp,
erlang,
fsharp ...)