ARtyProg
Links for the community by Salvatore Di Dio
Links - Pages
GFK - News
GFK - Project
RapydBox
RapydScript
Digital Art
Tuesday, March 4, 2008
Learning F# - List Concatenation
My first attempt with lists in F# :-)
let lofl = [[1;2];[3;4];[5;6]]
let rec concat ll =
match ll with
| [] -> []
| h :: t -> h @ concat t
printf "%A" (concat lofl)
read_line()
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment