Arjan van IJzendoorn wrote the function:

 > string_to_integer :: String -> Integer 
 > string_to_integer = string_to_int_list .| int_list_to_integer

Ralf Muschall answered:

 > (|.) = flip (.)
 > [..]
 > Where does the habit to use "flip (.)" in many FP people
 > come from?

If you think of the (types of) functions as domino stones,
|. makes them fit.

.---------------------.
|          |          |
|  string _to_integer |
|          |          |
.---------------------.
     .---------------------.  .---------------------.
     |          |          |  |          |          |
   = |  string _to_int_list|.|| int_list_to_integer |
     |          |          |  |          |          |
     .---------------------.  .---------------------.

Cheers,

Ronny Wichers Schreur


Reply via email to