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 を使用してみてください (少なくとも 1 つを使用する必要があります)。
始めるためのヒントをいくつか紹介します。
filter
map
他のコメントと回答に追加する唯一のことは、演算子を使用するために型をfromIntegral変換するための使用です。IntFractional(/)
fromIntegral
Int
Fractional
(/)