You seem to mix function composition with function application.
, , f g, - , , g , f . o , , -
fun compose (f,g) x = f(g(x))
fn : ('a -> 'b) * ('c -> 'a) -> 'c -> 'b ( , (op o); REPL). , compose 'c -> 'b, .
length o List.filter (fn (item) => item =
, , -.
, ,
length o (List.filter (fn (item) => item =
length o [
. . . length , .
,
length (List.filter(fn (item) = > item = # "a" ) (String.explode "name" ))
length [#"a"] 1.
apply, :
def apply f x = f x
compose, : fn : ('a -> 'b) -> 'a -> 'b. , .