> > On Nov 27, 2017, at 1:02 PM, Erling Hellenäs <[email protected]> wrote: > > Hi all ! > > In F# there is a unit type, corresponding to void in many other languages. To > execute a function without arguments you have to give it a unit argument. > Execute the function f: > f () > A function could also return unit: > Here is a function with a unit argument returning unit: > let f () = > .... > () > It can do a lot of things, since side effects are allowed in F#.
All of this originated in ML and arrived in F# by way of Ocaml, if anyone cares. -- Daniel Lyons ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
