f $ x = f x
これは
map ($ 0) xs
あるいはzipWith ($) fs xs
など のような高階関数を使う場面でも有用である。
つまり
Prelude> zipWith ($) [(1+),(2*),sqrt] [1,2,3] [2.0,4.0,1.7320508075688772]
これは便利そう。
f $ x = f x
これは
map ($ 0) xs
あるいはzipWith ($) fs xs
など のような高階関数を使う場面でも有用である。
つまり
Prelude> zipWith ($) [(1+),(2*),sqrt] [1,2,3] [2.0,4.0,1.7320508075688772]
これは便利そう。