From 4fc4520a4c885abf189ac49945f4b08b63f203ed Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 6 May 2017 08:09:19 +0100 Subject: [PATCH] Added clearer example for `lume.array()` in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 144c9f5..9412944 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ lume.sort({ 1, 3, 2 }, function(a, b) return a > b end) -- Returns { 3, 2, 1 } ### lume.array(...) Iterates the supplied iterator and returns an array filled with the values. ```lua -lume.array(pairs({a = 1, b = 2})) -- Returns {"a", "b"} +lume.array(string.gmatch("Hello world", "%a+")) -- Returns {"Hello", "world"} ``` ### lume.each(t, fn, ...)