Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: Re: Re: Isn't that nice?

by hding (Chaplain)
on Aug 30, 2002 at 18:15 UTC ( #194208=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Isn't that nice?
in thread Isn't that nice?

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


Comment on Re: Re: Re: Re: Isn't that nice?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://194208]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-04 09:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls