lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sat, May 3, 2014 at 3:42 PM, Coroutines <coroutines@gmail.com> wrote:
> On Sat, May 3, 2014 at 3:38 PM, Coda Highland <chighland@gmail.com> wrote:
>
>> local limited = clamp(input, 100, 1000)
>
> I give to you, all of our bacon.  We also would have accepted:
> within(100, input, 1000)
>

Of course, with the clamp() function it could have been expressed as

local limited = input:clamp(100,1000)

So... I don't have a clue what I'm saying. ;)

/s/ Adam