Skip to content

Commit

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

def fuel_cost (xs: List) : Int {
sum(
map_Int_Int_List(
( \x : Int -> Math_max (Math_floor_division(x)(3 - 2)) (0)) (xs))
)
map_Int_Int_List (( \x -> Math_max (Math_floor_division(x)(3) - 2)(0)) : (x: Int) -> Int) (xs)
)
}

# Type not freshable: ?t <class 'aeon.core.types.TypeVar'>

0 comments on commit 173d93d

Please sign in to comment.