S
Почему так работает
let calculateRemainingPetrol currentPetrol distance =
if currentPetrol >= distance then currentPetrol - distance
else failwith "Oops! You’ve run out of petrol!"
А так нет
let calculateRemainingPetrol(currentPetrol, distance) =
if currentPetrol >= distance then currentPetrol - distance
else failwith "Oops! You’ve run out of petrol!"
error FS0003: This value is not a function and cannot be applied.
???

