Yes, it looks a little bit like OCaml (i.e. I'm not sure this has never been seen in any other language). :-)
# let divide ~x ~y = x / y;; val divide : x:int -> y:int -> int = <fun> # let half = divide ~y:2;; val half : x:int -> int = <fun> # half 120;; - : int = 60
In reply to Re: Re: Re: Re: Isn't that nice?
by hding
in thread Isn't that nice?
by frankus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |