Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import
- std.functional,
- std.stdio;
- class HttpServerRequest
- {
- }
- bool matchString(string pattern, HttpServerRequest req)
- {
- writeln(pattern);
- return true;
- }
- void main()
- {
- string str = "hello";
- bool delegate(HttpServerRequest) predicate = &curry!(matchString, str);
- predicate(null);
- }
Advertisement
Add Comment
Please, Sign In to add comment