add spawn/stateless to FAQ

This commit is contained in:
Sam Caldwell 2015-09-23 14:56:28 -04:00
parent bd328012a9
commit 4cb6f5cf26
1 changed files with 3 additions and 0 deletions

3
FAQ.md
View File

@ -64,6 +64,9 @@
(spawn (lambda (event state) ... (transition state' (list action ...)))
initial-state
initial-action ...)
;; stateless actor
(spawn/stateless (lambda (event) ... (list action ...))
initial-action ...)
;; network of actors
(spawn-world boot-action ...)
```