Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请找出给定 Int 类型列表的奇数成员的立方的平均值。
尝试使用 (.)、($)、map、filter 或 foldl(您应该至少使用其中之一)。
我会给你一些提示,让你开始:
filter
map
我要添加到其他评论和答案中的唯一一件事是使用fromIntegral将Int类型转换Fractional为使用(/)运算符。
fromIntegral
Int
Fractional
(/)