Build collection dependencies and cache layouts
This commit is contained in:
7 files changed
+344
-3
No files matched your search
@@ -0,0 +1,9 @@
|
||||
type order = {
|
||||
customer : string;
|
||||
total : int;
|
||||
}
|
||||
|
||||
input orders : collection order
|
||||
|
||||
query count_large =
|
||||
orders |> filter (fun o -> o.total > 500) |> count
|
||||
@@ -0,0 +1,11 @@
|
||||
type order = {
|
||||
customer : string;
|
||||
total : int;
|
||||
}
|
||||
|
||||
input orders : collection order
|
||||
|
||||
let tax n = n * 20 / 100
|
||||
|
||||
query revenue =
|
||||
orders |> map (fun o -> tax o.total) |> sum
|
||||
Reference in new issue
Block a user