Language | ||||||||
---|---|---|---|---|---|---|---|---|
Common Lisp | mapc | mapcar | find-if | remove-if-not | reduce | reduce :from-end t | some | every |
Scheme | for-each | map | find | filter | fold, fold-left | fold-right | any, exists | every, for-all |
Haskell | mapM_ | map | find | filter | foldl | foldr | any | all |
Caml Light | do_list | map | - | - | it_list | list_it | exists | for_all |
OCaml | iter | map | find | filter, find_all | fold_left | fold_right | exists | for_all |
F# | iter | map | find | filter | fold | foldBack | exists | forall |
This file contains 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
;; inspired by http://g000001.cddddr.org/3601131164 | |
(import (rnrs) | |
(net twitter) | |
(text json select) | |
(text json tools) | |
(srfi :42)) | |
#| | |
((consumer-key "......") | |
(consumer-secret ".....") |
This file contains 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
#!/bin/bash | |
if [ $(synclient -l | grep TouchpadOff | gawk -F '=' '{ print $2 }') -eq 0 ]; then | |
synclient TouchpadOff=1 | |
else | |
synclient TouchpadOff=0 | |
fi |
This file contains 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
Note: | |
The original document is a section of CLOS in "Google Common Lisp Style Guid", | |
http://google-styleguide.googlecode.com/svn/trunk/lispguide.xml (v1.17) | |
This translation is based on a Japanese translation | |
http://google-common-lisp-style-guide-ja.cddddr.org/?showone=CLOS#CLOS | |
as of 2013/01/05 23:00 JST | |
CC-By 3.0 License |
この文章は、 Lisp Advent Calendar 2014 の 12/11 担当分の記事として書かれました。
C系言語から Common Lisp に移行した時、「どうして Lisp はこんなに書き辛いんだ?」と思っていたことを記憶しています。
この記事は、lispリーダーマクロアドベントカレンダー の4日目の記事です。 タイトルにある通り、Clojure でのリー ダーマクロについて取り扱います(対象とする Clojure のバージョンは 1.4)。
この文章は、 Steve Losh 氏の記事 "A Road to Common Lisp" の翻訳です。
原文はこちらです: http://stevelosh.com/blog/2018/08/a-road-to-common-lisp/
A Road to Common Lisp (Common Lisp への道)
これまで、「最近のCommon Lispをどう学ぶとよいでしょう?」と助言を求めるメールをたくさん受け取ってきました。そこで私は、これまでメールやソーシャルメディアに投稿した全てのアドバイスを書き下すことにしました。これが誰かに有益ならば幸いです。