f# references (and some misc slides)

7
Default lists are linked-lists 1 2 3 4 Execute The same for the rest let rec loop action mylist = match mylist with | [] -> [] | first::rest -> action first :: loop action rest Recursive handling ::

Upload: tuomas-hietanen

Post on 17-Dec-2014

580 views

Category:

Technology


3 download

DESCRIPTION

 

TRANSCRIPT

Page 1: F# references (and some misc slides)

Default lists are linked-lists

1 2 3 4 …

Execute The same for the rest

let rec loop action mylist =   match  mylist with   | [] -> []   | first::rest ->  action first :: loop action rest

Recursive handling

::

Page 2: F# references (and some misc slides)

Tail recursionRecursion left something to memory?• StackOverflowException

1.Collect the result as parameter

2. Recursive call as the last operation

Page 3: F# references (and some misc slides)

Sites

• http://www.meetup.com/FSharpHelsinki/• http://fssnip.net/• http://www.tryfsharp.org/• http://cs.hubfs.net/• http://msdn.microsoft.com/en-us/fsharp/• http://research.microsoft.com/en-us/um/cam

bridge/projects/fsharp/• http://channel9.msdn.com/Shows/Going+Dee

p• http://www.stackoverflow.com

Page 4: F# references (and some misc slides)

F# related blogs• http://community.bartdesmet.net/blogs/bart/default.aspx• http://tomasp.net/blog/• http://blogs.msdn.com/b/dsyme/• http://codebetter.com/blogs/matthew.podwysocki/default.aspx• http://rogeralsing.com/• http://fsharp-code.blogspot.com/• http://fsharpcode.blogspot.com/• http://call-with-cc-en.blogspot.com/• http://blogs.msdn.com/b/andrewkennedy/• http://wadler.blogspot.com/• http://blogs.msdn.com/chrsmith/default.aspx• http://lorgonblog.wordpress.com/• http://blogs.msdn.com/b/lukeh/• http://strangelights.com/blog/Default.aspx• http://themechanicalbride.blogspot.com/• http://zamboch.blogspot.com/• http://fsharpnews.blogspot.com/• http://geekswithblogs.net/akraus1/Default.aspx• http://bloggemdano.blogspot.com/• http://diditwith.net/

Page 5: F# references (and some misc slides)

F# Books

Page 6: F# references (and some misc slides)
Page 7: F# references (and some misc slides)