2013-04-21から1日間の記事一覧
コードの論理を分かりやすくする術について。 Avoid using got statements, as they make remote sections highly interdependent. Avoide using modifiable global variables, as they make all sections that use them dependent. Each variable should ha…
リーダブルコードに通じるものがあるお If it was hard to write, it should be hard to read. Make sure that your comments clarify your code but do not obscure it.
hexadecimal 16進法 octal 8進法 decimal 10進法
complex numberを複素数といい。 imaginary poart を虚数部という。1 + 2i が複素数で、2iが虚数部。
= は数が等しいかどうかを調べるものなので、 シンボルと比較するとエラーになる [1]> (defun member$ (item list) (if (null lst) nil (if (= item (first lst)) lst (member$ item (rest lst))))) MEMBER$ [2]> (member$ 'tea '(juice tea coffee)) *** - …