What does -> do in clojure?
摘要:https://stackoverflow.com/questions/4579226/what-does-do-in-clojure
阅读全文
posted @
2019-01-15 22:22
c3tc3tc3t
阅读(126)
推荐(0)
尾递归版,斐波那契数列
摘要:尾递归版(def f (fn fb [n a1 a2] (if (< n 2) a1 (fb (- n 1) a2 (+ a1 a2) ) ) ))(map #(f % 1 1) [1 2 3 4 5 6 7])
阅读全文
posted @
2014-03-18 21:04
c3tc3tc3t
阅读(199)
推荐(0)
clojure中符号symbols 和变量vars的正确理解
摘要:原地址 http://stackoverflow.com/questions/11662084/why-does-clojure-distinguish-between-symbols-and-vars?rq=1Symbols are namesUnlike most programming languages, Clojure makes a distinction betweenthingsand thenamesof things. In most languages, if I say something likevar x = 1, then it is correct and co
阅读全文
posted @
2014-03-04 09:52
c3tc3tc3t
阅读(884)
推荐(0)
vim配置clojure开发环境备忘录
摘要:1 需要使用的插件vundle 使用教程http://www.cnblogs.com/respawn/archive/2012/08/21/2649483.htmlvim-fireplacehttps://github.com/tpope/vim-fireplace2 在vim配置文件上 配置好插件Bundle 'tpope/vim-fireplace'3 安装上lein http://leiningen.org/下载后。按照网站介绍安装就可以了4使用在终端下执行lein replnREPL server started on port 34192 on host 127.0.
阅读全文
posted @
2014-03-02 10:01
c3tc3tc3t
阅读(1085)
推荐(0)
clojure学习笔记(一)
摘要:下载地址 需要安装xmind打开http://pan.baidu.com/s/1dDxKj1B
阅读全文
posted @
2014-01-25 10:49
c3tc3tc3t
阅读(174)
推荐(0)
light table 添加行号 更新
摘要:在上一个笔记修改完字体后.再添加上行号以上设置是老版本在新版本0.6.4上这样设置,去掉两边括号 和true:editor [:lt.objs.editor/no-wrap :lt.objs.editor/line-numbers
阅读全文
posted @
2013-12-14 11:05
c3tc3tc3t
阅读(471)
推荐(0)
Light Table 编辑器修改字体 更新
摘要:view->command->use.behaviors加上这一句 (:lt.objs.style/font-settings "Inconsolata" 14 1)字体是 "Inconsolata"字体大小是 14行高度间距是 1在0.6.4 字体不加双引号(:lt.objs.style/font-settings Inconsolata14 1)
阅读全文
posted @
2013-12-13 18:15
c3tc3tc3t
阅读(605)
推荐(0)
更新jdk后 Light Table无法找到新版本jdk的bin目录
摘要:原来是lein构建工具中保存了原来jdk版本记录,就是这个profiles文件原来jdk1.7.0_17 我现在改成如下图jdk1.7.0_40 问题解决
阅读全文
posted @
2013-11-27 20:55
c3tc3tc3t
阅读(417)
推荐(0)
emacs 配置 clojure
摘要:安装JDK,Version>=6.0 java-version 2安装EMACS,Version>=24 在脚本~/.emacs.d/init.el中增加如下内容 (require'package) (add-to-list'package-archives '("marmalade"."http://marmalade-repo.org/packages/")t) (package-initialize) (when(notpackage-archive-contents) (package-refresh-cont
阅读全文
posted @
2013-09-30 12:30
c3tc3tc3t
阅读(323)
推荐(0)
emacs窗口半透明
摘要:转自http://blog.csdn.net/dsjlzh/article/details/7804733;; transform window;; Anchor: March Liu (刘鑫) ;;;; This is a script to set emacs window's alpha value.;; It work well on windows xp and vista with EmacsWin32;; useage: add below line in your .emacs;;;; (load-file "path/alpha-window.el"
阅读全文
posted @
2013-09-29 13:08
c3tc3tc3t
阅读(511)
推荐(0)
Clojure 开发环境 light table 和 Leiningen 安装指引
摘要:1 首先下载 Light table 然后 解压到到一文件夹。目录中千万不能有空格 下载地址 http://www.lighttable.com/2下载构建工具 下载地址 http://leiningen-win-installer.djpowell.net/ Leiningen 中文教程 http://wiki.fnil.net/index.php?title=Leiningen_tutorial%E4%B8%AD%E6%96%87%E7%89%883安装 Leiningen 安装教程看这里 有图 http://leiningen-win-installer.djpowell.net/4 然
阅读全文
posted @
2013-09-28 22:50
c3tc3tc3t
阅读(1314)
推荐(0)
Clojure编写一个阶乘程序 使用递归
摘要:这是递归(def f (fn fb [x] (if (< x 2) 1 (* x (fb (- x 1)) ) ) ) )(def f (fn fb [x y] (if (= x 1) y (fb (- x 1) (* x y)) ) ) )
阅读全文
posted @
2013-09-28 12:57
c3tc3tc3t
阅读(416)
推荐(0)