Advertisement
Guest User

Russ S.

a guest
Dec 28th, 2010
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <cffunction name="applyFunction">
  2.     <cfargument name="function_name">
  3.     <cfargument name="value">
  4.    
  5.     <cfreturn arguments.function_name(arguments.value)>
  6. </cffunction>
  7.  
  8.  
  9. <cffunction name="double">
  10.     <cfargument name="input" type="numeric">
  11.    
  12.     <cfreturn arguments.input * 2>
  13. </cffunction>
  14.  
  15.  
  16. <cfset result = applyFunction(double, 3)>
  17.  
  18.  
  19. <cfoutput>
  20.     Double Result: #result#
  21. </cfoutput>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement