In the snippet below, I don’t see why I have to compose fand ghow the function works fooand why it does not work the way it tries to execute the function bar.
f
g
foo
bar
let f a b = a,b let g (a : 'a) (b : 'a) = a let (>!) f1 f2 = fun a b -> let (x,y) = f1 a b f2 x y let foo = fun a b -> (f >! g) a b let bar = f >! g
Can someone explain to me why it bardoesn't work? Given that it fooalso has a generic type, it makes no sense to me.
foois a function, and baris a value. Yes, this is a function type value, but still a value. There is a subtle difference.
F # "", foo , fun -> let.
fun ->
let
bar, , - , ( >!). F # ( " " ), ( ), ( ) , , " ". ( , )
>!
F #, ML. F # SML.
Source: https://habr.com/ru/post/1654027/More articles:Using Perl Ansi color to tint the entire screen - terminalУменьшение мин. Мин. И мин. - c++Respond to local localization: global variable - javascriptWatson Java SDK and OkHttp memory acceleration - text-to-speechOne fragment for several actions - androidHow to check if a string matches all patterns in an array using smartmatch? - regexIs there an easy way to clear the screen / hold the output window in the CLI using compatible code, avoiding conio.h and ncurses.h? - c ++Typescript: how to import .ts files as source string - modulePreventing Java applications using modified jars - javaJava JAR / Code Tampering Detection - javaAll Articles