package combic
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Combic
Source
Return first argument, ignoring second
Return second argument, ignoring first
Passes a single value to both arguments of binary function. eg: let double = warbler (+)
Can be used to flip the arguments of a binary function. eg: cardinal String.concat "a";"b"
","
String.concat: string -> string list -> string, but by using cardinal it changes to string list -> string -> string
Composition eg: bluebird f g = f . g
Composition where b takes two arguments eg: blackbird add1 ( * )
Composition where b takes three arguments eg: blunting add1 ( fun x y z -> x * y *z )
Composition with 3 functions eg: becard add1 add1 add1
Source
val ehat :
('a -> 'b -> 'c) ->
('d -> 'e -> 'a) ->
'd ->
'e ->
('f -> 'g -> 'b) ->
'f ->
'g ->
'c
Source
val baldeagle :
('a -> 'b -> 'c) ->
('d -> 'e -> 'a) ->
'd ->
'e ->
('f -> 'g -> 'b) ->
'f ->
'g ->
'c