接口gen:Functor
接口
gen:Functor
procedure(functor:map f ma) → Functor? f : (-> a b) ma : Functor?
procedure(functor:map f ma) → Functor?
procedure
(functor:map f ma) → Functor?
procedure(Functor? a) → boolean? a : any/c
procedure(Functor? a) → boolean?
(Functor? a) → boolean?
procedure(map f ma) → Functor? f : (-> a b) ma : Functor?
procedure(map f ma) → Functor?
(map f ma) → Functor?
> (map add1 (list 1 2 3))'(2 3 4)> (map add1 (hash 1 2 3 4))'#hash((1 . 3) (3 . 5))
'(2 3 4)
'#hash((1 . 3) (3 . 5))
procedure(<$> f ma) → Functor? f : (-> a b) ma : Functor?
procedure(<$> f ma) → Functor?
(<$> f ma) → Functor?
procedure(<#> ma f) → Functor? ma : Functor? f : (-> a b)
procedure(<#> ma f) → Functor?
(<#> ma f) → Functor?
(define <#> (flip map))
procedure(<$ a ma) → Functor? a : a ma : Functor?
procedure(<$ a ma) → Functor?
(<$ a ma) → Functor?
> (<$ 1 (list 1 2 3 4 4 5))'(1 1 1 1 1 1)> (<$ 2 (hash 11 12 13 14))'#hash((11 . 2) (13 . 2))
'(1 1 1 1 1 1)
'#hash((11 . 2) (13 . 2))
procedure($> ma a) → Functor? ma : Functor? a : any/c
procedure($> ma a) → Functor?
($> ma a) → Functor?