Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Near-free function currying in Perl

by tmoertel (Chaplain)
on Nov 17, 2004 at 16:49 UTC ( [id://408465]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    greeting('Woah'); # Waits
    ...
    greeting('Nelly'); # prints now that it has both arguments
    
  2. or download this
        greeting verb object = putStrLn (verb ++ ", " ++ object)
    
  3. or download this
        greeting :: String -> String -> IO ()
    
  4. or download this
        greeting :: String -> ( String -> IO () )
    
  5. or download this
        greeting "Hello" "World"
        (greeting "Hello") "World"
        ((greeting) "Hello") "World"
    
  6. or download this
        greeting "Hello" "World" :: IO ()
        greeting "Hello"         :: String -> IO ()
        greeting                 :: String -> String -> IO ()
    
  7. or download this
        sub foo { print "@_" }
    
  8. or download this
        (-) 2 1            ==>  1
        flip (-) 2 1       ==> -1
    
        dec1 = flip (-) 1
        dec1 2             ==> 1
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-19 20:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found