This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Function#bind(context [, arg1 [, arg2 [, argN]]]) -> Function | |
* - context (Object): Object context to bind to. | |
* - arg1 (?): Optional argument to curry. | |
* | |
* Bind a function to a given `context`. Optionally curry arguments. | |
* | |
* ### Examples | |
* | |
* var new_func = my_func.bind(my_object, "no u"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is a litle tech demo to demonstrate using clojureCLR in a CLR web app. | |
* | |
* A custom IHttpHandler (ClojureHttpHandler) handles invocation of clojure code, | |
* and a custom IRouteHandler (ClojureRouteHandler) routes requests to the HttpHandler. | |
* | |
* See comments in the code for further detail. | |
* | |
* Cheers, zdam | |
* http://zimpler.com/blog/clojureclr-in-an-asp-net-mvc-app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; A CLR port of http://bestinclass.wordpress.com/2009/09/24/chaos-theory-vs-clojure/ | |
; Updated to use Rich Hickey's changes: http://paste.lisp.org/display/87799 | |
; | |
; A WPF app is fired up in another thread. Anything you type in the REPL | |
; is dispatched to the WPF thread and evaluated there. | |
; | |
; Requires the following addition to ClojureCLR's GenDelegate.cs: | |
; public static Delegate CreateFunc(IFn fn) | |
; { | |
; Type delegateType = typeof(Func<>).MakeGenericType(new Type[] { typeof(object) }); |
NewerOlder