Haskell chain functions based on separate conditions -


Is there an efficient / easy way when a panel is applied to a argument, then only those tasks apply Are the applications that meet their needs in order to be applied? Eg:

I have 1 argument 'Obj' and 3 functions: func1, func2, func3. Everyone needs their own needs, which can also result in logic. Like pseudo code:

  (if condition1 then func1). (If condition2 again func2). (If condition 3 then fun 3) Obj  

So if all the positions are eligible, then all 3 functions will be applicable in the ob.

Is there any way that I can do it properly

First, you have $ before obj . I feel that in answer to your question, you just else section:

  (if c0 then f0 another id) $ (if C1 then F1 another ID ) $ (If C2 then F2 other ID) $ Eg  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -