Ask these questions:
- How many of you have deployed your applications for the cloud?
- Have you ever had any downtown out of something you didn't do?
| public class Program | |
| { | |
| public void Main() | |
| { | |
| var solution = new Directory | |
| { | |
| ["global.json"] = new JObject | |
| { | |
| ["projects"] = new JArray { "src", "test" } | |
| }, |
| module Parsing = | |
| open System.Collections.Generic | |
| let (|Mul|_|) ch = if ch = '*' then Some(fun a b -> a * b) else None | |
| let (|Add|_|) ch = if ch = '+' then Some(fun a b -> a + b) else None | |
| let (|Space|_|) (ch:Char) = if Char.IsWhiteSpace ch then Some(ch) else None | |
| let (|Digit|_|) (ch:Char) = if Char.IsDigit ch then (new String ([|ch|])) |> Int32.Parse |> Some else None | |
| type Token = | |
| | Number of int |
| type Building = | |
| { left : int | |
| right : int | |
| height : int } | |
| let buildings = [] | |
| let getHeight building = building.height | |
| let getWidth building = building.right - building.left | |
| let getArea building = getHeight building * getWidth building |
| type Building = | |
| { left : int | |
| right : int | |
| height : int } | |
| let buildings = [] | |
| let getHeight building = building.height | |
| let getWidth building = building.right - building.left | |
| let getArea building = getHeight building * getWidth building |