-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout-styles.fss
More file actions
42 lines (32 loc) · 1.06 KB
/
layout-styles.fss
File metadata and controls
42 lines (32 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
type Address =
{ City: string
Zip: int }
type Operation =
{ Command: string
Arguments: string
ErrorLevel: int }
let format_address (address: { City: string; Zip: int }) =
$"{address.City} ({address.Zip})"
let names_compact =
["format_address"
"make_office_address"]
let record_compact =
{ City = "Paris"
Zip = 75000 }
let capabilities_single =
{ ["format_address"] = "address formatting"; ["make_office_address"] = "office address constructor" }
let capabilities_compact =
{ ["format_address"] = "address formatting"
["make_office_address"] = "office address constructor" }
let primary = format_address record_compact
let names_total = List.length names_compact
let all_count =
(capabilities_single |> Map.count)
+ (capabilities_compact |> Map.count)
let build_ops command =
let ops = [ { Command = "docker"
Arguments = command
ErrorLevel = 0 } ]
ops
let ops = build_ops "build ."
print $"{primary} | names={names_total} | maps={all_count} | ops={List.length ops}"