Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Near-free function currying in Perl

by tmoertel (Chaplain)
on Nov 17, 2004 at 16:49 UTC ( #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
Node Status?
node history
Node Type: note [id://408465]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2020-12-03 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (52 votes). Check out past polls.

    Notices?