Skip to content

Commit

Permalink
shopping example working
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo-imadeira committed Feb 21, 2024
1 parent 173d93d commit 1cd22bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/PSB2/annotations/shopping.ae
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ def map_Int_Int_Int_List_List: (function: (a: Int) -> (b: Int) -> Int) -> (l: Li

def shopping (prices: List, discounts: List) : Int {
sum(
map_Int_Int_Int_List_List(
( \x : Int -> \y : Int -> x * (1 - d / 100)) (prices) (discounts)
)
map_Int_Int_Int_List_List
(( \x -> (\y -> x * (1 - y / 100))): (x:Int) -> (y:Int) -> Int) (prices) (discounts)
)
}

Expand Down

0 comments on commit 1cd22bc

Please sign in to comment.