From 0c085ad5c133719ebc7602dad265ba156e0730d0 Mon Sep 17 00:00:00 2001 From: rxi Date: Mon, 3 Mar 2014 13:34:27 +0000 Subject: [PATCH] Updated README.md for changes in lume.fn() --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index df8d115..3640de1 100644 --- a/README.md +++ b/README.md @@ -153,10 +153,12 @@ Returns a shallow copy of the table `t`. ### lume.fn(fn, ...) Creates a wrapper function around function `fn`, automatically inserting the -arguments into `fn` which will persist every time the wrapper is called. +arguments into `fn` which will persist every time the wrapper is called. Any +arguments which are passed to the returned function will be inserted after the +already existing arguments passed to `fn`. ```lua local f = lume.fn(print, "Hello") -f() -- Prints "Hello" +f("world") -- Prints "Hello world" ``` ### lume.once(fn, ...)