8.16.0.1
3.6 Applicative(应用函子)
3.6.1 类型类定义
Applicative接口。
procedure
(applicative:ap fa fb) → Applicative?
fa : Applicative? fb : Applicative?
Applicative最小实现。
因为racket没有泛型,另一个最小实现pure不需要提供,只是在使用时,需要明确指定。
procedure
(Applicative? a) → boolean?
a : any/c
是不是gen:Applicative实例。
3.6.2 Applicative操作函数
procedure
(<*> fa fb) → Applicative?
fa : Applicative? fb : Applicative?
procedure
(<* fa fb) → Applicative?
fa : Applicative? fb : Applicative? (*> fb fa) → Applicative? fb : Applicative? fa : Applicative?