サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
大谷翔平
maryrosecook.com
Little Lisp is an interpreter that supports function invocation, lambdas, lets, ifs, numbers, strings, a few library functions, and lists. I wrote it for a lightning talk at the Recurse Center to show how easy it is to write an interpreter. The code is 116 lines of JavaScript. I will explain how it works. First, let’s learn some Lisp. An atom, the simplest Lisp form:
(This essay is a companion piece to Gitlet, my implementation of Git in JavaScript.) Imagine you have a directory called alpha. It contains a file called number.txt that contains the text first. You run git init to set up alpha as a Git repository. You run git add number.txt to add number.txt to the index. The index is a list of all the files that Git is keeping track of. It maps filenames to the
Many functional programming articles teach abstract functional techniques. That is, composition, pipelining, higher order functions. This one is different. It shows examples of imperative, unfunctional code that people write every day and translates these examples to a functional style. The first section of the article takes short, data transforming loops and translates them into functional maps a
このページを最初にブックマークしてみませんか?
『Mary Rose Cook』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く