在Excel中使用 Clojure 編程語言:Excel REPL

jopen 9年前發布 | 20K 次閱讀 Excel REPL

提供一個完整的Clojure編程環境,提高你在Microsoft Excel中的工作效率。

Excel REPL能夠在Excel輕松啟動一個ClojureCLR Repl。簡單安裝成一個Excel Add-In來提供一些額外的Excel功能。

Load

=Load(A:A)

Concatenates the contents of selected cells and evaluates them in namespace SheetName. SheetName is the name of the current worksheet.

Export

(defn ^:export f [] ...)

(defn ^:export g ([] "No Args") ([x] "One Arg"))

(defn ^:export h [single-cell-argument [excel-array-argument]] ...)

(require 'excel-repl.udf)
(excel-repl.udf/export-fns) ;exports the above functions

excel-repl.udf/export-fnswill export as Excel user defined functions all functions with^:exportmetadata in the current namespace. Functions with a single arglist are simply exported as their name. Multiarity functions include the arity. In the example above f will export=F()and g will export=G0()and=G1(x).


在Excel中使用 Clojure 編程語言:Excel REPL

項目主頁:http://www.baiduhome.net/lib/view/home/1432023134271

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!