Haskell中的完整或句号或点(。)是什么意思? [英] What does a fullstop or period or dot (.) mean in Haskell?

查看:212
本文介绍了Haskell中的完整或句号或点(。)是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 几十年::(RealFrac a)=>我真的希望Google能更好地搜索语法: a  - > a  - > [a]  - >数组Int Int 
数十年a b = hist(0,9)。地图十年
其中十年x = floor((x-a)* s)
s = 10 /(b-a)


解决方案

f(g(x))

b $ b



在数学中: f∘g (x)



in haskell:(f。g) ( x)


I really wish that Google was better at searching for syntax:

decades         :: (RealFrac a) => a -> a -> [a] -> Array Int Int
decades a b     =  hist (0,9) . map decade
                   where decade x = floor ((x - a) * s)
                         s        = 10 / (b - a)

解决方案

f(g(x))

is

in mathematics : f ∘ g (x)

in haskell : ( f . g ) (x)

这篇关于Haskell中的完整或句号或点(。)是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆