Weitere ähnliche Inhalte Kürzlich hochgeladen (20) 45 F#antastic minutes!5. “Take the next ticket from a list. If the
ticket is not printed, send to print. If
there are more tickets in the list, go to
the begining.”
6. “Run the first command for every
customer for which the second
command returns true.”
8. “Take the next ticket from a list. If the
ticket is not printed, send to print. If
there are more tickets in the list, go to
the begining.”
“Send to print every ticket that is not printed.”
10. Thinking difɘrɘntly in C#
Imperative
foreach (Ticket t in Tickets)
{
if (!t.IsPrinted)
{
Print(t);
}
}
Declarative
Tickets
.Where(t=>!t.IsPrinted).ToList()
.ForEach(t => Print(t));
15. Reason 2
I get paid by the line
I get paid by the line
I get paid by the line
27. F# 3.0
Data, Services,
Information
Access
F# 2.0
Transformations,
Analysis,
Algorithms,
Code, Parallel
C#, HTML5, JS
Presentation,
Publication,
Experience