Skip to content

Commit

Permalink
Merge d89f44b into 6fe8d76
Browse files Browse the repository at this point in the history
  • Loading branch information
vkensou committed Dec 18, 2019
2 parents 6fe8d76 + d89f44b commit cec9cba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/tutorial.md
Expand Up @@ -1598,7 +1598,7 @@ where the first item is the function and the following are the remaining args ne

```lua
local function inc(x) return x + 1 end
local function add(x, y) return x * y end
local function add(x, y) return x + y end
local function pow(x, y) return x ^ y end
M.thread(2, inc, {add, 3}, {pow, 2}) -- => 36
M.thread(2, {add, 4}, inc, {pow, 2}) -- => 49
Expand All @@ -1612,7 +1612,7 @@ the remaining args neeeded. The value is used as the last input.

```lua
local function inc(x) return x + 1 end
local function add(x, y) return x * y end
local function add(x, y) return x + y end
local function pow(x, y) return x ^ y end
M.threadRight(2, inc, {add, 3}, {pow, 2}) -- => 64
M.threadRight(2, {add, 4}, inc, {pow, 2}) -- => 128
Expand Down

0 comments on commit cec9cba

Please sign in to comment.