RosettaCodeData/Task/Loops-N-plus-one-half/F-Sharp/loops-n-plus-one-half.fs
2023-07-01 13:44:08 -04:00

10 lines
193 B
FSharp

let rec print (lst : int list) =
match lst with
| hd :: [] ->
printf "%i " hd
| hd :: tl ->
printf "%i, " hd
print tl
| [] -> printf "\n"
print [1..10]