Skip to content

Library for manipulation of vararg expressions in Lua.

License

Notifications You must be signed in to change notification settings

renatomaia/luavararg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vararg Manipulation Library

vararg is a Lua library for manipulation of vararg expressions. These functions basically allow you to do things with vararg that cannot be efficiently done in pure Lua but can be easily done through the C API.

Installation

You can install it from source using LuaRocks:

luarocks make etc/vararg-scm-1.rockspec

Documentation

History

Version 2.1

  • vararg.concat and vararg.map now work with functions that yield.

Version 2.0

  • Lua 5.3 compatibility.

  • Performance improvement in 'vararg.pack'.

  • Removal of limitation of max 255 values to pack using 'vararg.pack'.

  • Function vararg.append requires a value to be appended.

  • Function vararg.range and vararg packs (vararg.pack) does not fill the resulting range with nil values.

    Therefore vararg.range(2, 4, 1,2,3) will return 2,3 instead of 2,3,nil.

    Likewise, vararg.pack(1,2,3)(2, 4) will return 2,3 instead of 2,3,nil.

  • Function vararg.remove does not raise out of bound errors.

  • Function vararg.concat now only takes a single function which results are appended to the additional arguments.

  • New function vararg.len.

  • Reference manual.

  • No more a pure Lua alternative implementation.

Version 1.1:

  • New operation vararg.map.

Version 1.0:

  • First release.

About

Library for manipulation of vararg expressions in Lua.

Resources

License

Stars

Watchers

Forks

Packages

No packages published