So it's not a nilladic function in the sense it requires an argument list
that's empty. I thought that you wanted a nilladic function that had only a
name.

On Nov 27, 2017 1:12 PM, "Daniel Lyons" <[email protected]> wrote:

> >
> > 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to