Guest User

Untitled

a guest
Sep 12th, 2012
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import
  2.     std.functional,
  3.     std.stdio;
  4.  
  5. class HttpServerRequest
  6. {
  7. }
  8.  
  9. bool matchString(string pattern, HttpServerRequest req)
  10. {
  11.     writeln(pattern);
  12.     return true;
  13. }
  14.  
  15. void main()
  16. {
  17.     string str = "hello";
  18.     bool delegate(HttpServerRequest) predicate = &curry!(matchString, str);
  19.     predicate(null);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment