Skip to content

Commit

Permalink
Clarify a bit in tutorial.
Browse files Browse the repository at this point in the history
technomancy committed Jun 10, 2021
1 parent 2e07707 commit ffa3a4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tutorial.md
Original file line number Diff line number Diff line change
@@ -558,13 +558,13 @@ runtime overhead over Lua.
They can behave in surprising ways with multiple-return-valued functions,
because the number of arguments to them must be known at compile-time.

* There is no `apply` function; use `unpack` (or `table.unpack`
depending on your Lua version) instead: `(f 1 3 (unpack [4 9])`.
* There is no `apply` function; instead use `table.unpack` or `unpack`
depending on your Lua version: `(f 1 3 (table.unpack [4 9]))`.

* Tables are compared for identity, not based on the value of their
contents, as per [Baker][8].

* Return values in the default repl will get pretty-printed, but
* Return values in the repl will get pretty-printed, but
calling `(print tbl)` will emit output like `table: 0x55a3a8749ef0`.
If you don't already have one, it's recommended for debugging to
define a printer function which calls `fennel.view` on its argument

0 comments on commit ffa3a4b

Please sign in to comment.