我一直在和Clojure-CLR一起玩.我的REPL正在工作,我可以从Clojure调用.NET类,但我无法弄清楚从C#类调用编译的Clojure dll.
我从示例顶部删除了:name行,因为它导致"Duplicate key :: name"错误.没有":name"行,代码编译得很好,我可以在Visual Studio中添加引用,但我似乎无法弄清楚如何使用代码.我尝试了各种"使用"语句,但到目前为止还没有任何效果.任何人都可以对此提供一点见解吗?这是我试图使用的Clojure代码.
(ns code.clojure.example.hello
(:gen-class
:methods [#^{:static true} [output [int int] int]]))
(defn output [a b]
(+ a b))
(defn -output
[a b]
(output a b))
Run Code Online (Sandbox Code Playgroud) 我最喜欢的 Bash 技巧之一涉及创建别名来标记和返回目录,如下所述:http : //www.huyng.com/archives/quick-bash-tip-directory-bookmarks/492/。
在 Bash 中,它看起来像这样:
alias m1='alias g1="cd `pwd`"'
Run Code Online (Sandbox Code Playgroud)
是否可以在powershell中创建类似的功能?