mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 23:23:55 +00:00
[lfe/en] proofread
This commit is contained in:
parent
ae280b79ec
commit
842937f79f
@ -1,5 +1,4 @@
|
||||
---
|
||||
|
||||
language: "Lisp Flavoured Erlang (LFE)"
|
||||
filename: lispflavourederlang.lfe
|
||||
contributors:
|
||||
@ -9,13 +8,8 @@ contributors:
|
||||
Lisp Flavoured Erlang (LFE) is a functional, concurrent, general-purpose programming
|
||||
language and Lisp dialect (Lisp-2) built on top of Core Erlang and the Erlang Virtual Machine (BEAM).
|
||||
|
||||
LFE can be obtained from [LFE](https://github.com/rvirding/lfe)
|
||||
|
||||
The classic starting point is [LFE DOCS.](http://docs.lfe.io)
|
||||
|
||||
Another new site is being built to replace it.[LFE DEV.](http://docs.lfe.io/dev)
|
||||
|
||||
|
||||
LFE can be obtained from [LFE](https://github.com/rvirding/lfe).
|
||||
The classic starting point is the [LFE docs](http://docs.lfe.io).
|
||||
|
||||
```lisp
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@ -24,7 +18,7 @@ Another new site is being built to replace it.[LFE DEV.](http://docs.lfe.io/dev)
|
||||
|
||||
;;; General form.
|
||||
|
||||
;; Lisp comprises of two syntax called: the ATOM and the S-expression.
|
||||
;; Lisp is comprised of two syntaxes, the ATOM and the S-expression.
|
||||
;; `forms` are known as grouped S-expressions.
|
||||
|
||||
8 ; an atom; it evaluates to itself
|
||||
@ -130,7 +124,7 @@ lfe> (list-comp
|
||||
;; 2. Core forms
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; These forms are same as those found at Common Lisp and Scheme.
|
||||
;; These forms are the same as those found in Common Lisp and Scheme.
|
||||
|
||||
(quote e)
|
||||
(cons head tail)
|
||||
@ -189,7 +183,7 @@ lfe> (list-comp
|
||||
;; 3. Macros
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; Macros are part of the language to allow you to create abstractions
|
||||
;; Macros are part of the language and allow you to create abstractions
|
||||
;; on top of the core language and standard library that move you closer
|
||||
;; toward being able to directly express the things you want to express.
|
||||
|
||||
@ -437,9 +431,6 @@ apply _F/3 ( a1, a2, a3 )
|
||||
(io:format "Error: ~p~n" `(,reason)))
|
||||
(`#(http #(,request-id ,result))
|
||||
(io:format "Result: ~p~n" `(,result))))))
|
||||
|
||||
|
||||
;; Check out Erlang's documentation for more concurrency and OTP docs.
|
||||
```
|
||||
|
||||
## Further Reading
|
||||
@ -449,10 +440,6 @@ apply _F/3 ( a1, a2, a3 )
|
||||
* [LFE Wiki](https://en.wikipedia.org/wiki/LFE_(programming_language))
|
||||
|
||||
## Extra Info
|
||||
|
||||
* [LFE PDF](http://www.erlang-factory.com/upload/presentations/61/Robertvirding-LispFlavouredErlang.pdf)
|
||||
* [LFE mail](https://groups.google.com/d/msg/lisp-flavoured-erlang/XA5HeLbQQDk/TUHabZCHXB0J)
|
||||
|
||||
## Credits
|
||||
|
||||
Lots of thanks to Robert Virding for creating LFE, Duncan McGreggor for documenting it and other LFE contributors who made LFE awesome.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user