lua-users home
lua-l archive

[ANN] ihelp 1.0: Lua Interactive Help

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


Point your git at: <git://github.com/dlaurie/lua-ihelp.git>
It works this way (any LDoc-compatible module can be substituted for ml):
Lua 5.2.2 Copyright (C) 1994-2012 Lua.org, PUC-Rio
> ml=require"ml"; help=require"ihelp"; help(ml)
Contents: ML_VERSION apply bag bind callable collect compose contains
 count equalkeys escape exists expand extend ifilter ifind import indexby
 indexof invert keys makemap memoize range readfile removerange split
 splitext splitpath sub throw tstring update writefile
> help(ml.apply)
--- apply a function to each element of an array.
-- The output must always be the same length as the input, so
-- any `nil` values are mapped to `false`.
-- @param t the array
-- @param f a function of one or more arguments
-- @param ... any extra arguments to the function
-- @return the transformed array
Not much different from the previous version of 6 months ago.
- Name of module now `ihelp` since `help` has been taken
- There's a rockspec included.
- Works on Lua 5.1 and Lua 5.2

AltStyle によって変換されたページ (->オリジナル) /