我有以下内容:
type Description = String
type WeeklyHours = Float
type HourlyPay = Float
type JobDB = [(Description, WeeklyHours, HourlyPay)]
weeklyJobPay :: JobDB -> [(Description,Float)]
weeklyJobPay jDB = undefined
对于 JobDB 中的每个元组,我需要函数 weekJobPay 将 weekHours 乘以 HourlyPay。我怎么能这样做?