lua-users home
lua-l archive

Re: 14-byte factorials

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


2015年05月08日 14:02 GMT+02:00 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>> alias lua='lua -l mathx -e "math=mathx" -i'
>
> I'm sure you know what you're doing but, for the record, doing "math=mathx"
> kills these functions because mathx deals exclusively with floats:
>
> maxinteger mininteger random randomseed tointeger
> type ult max min
Thanks for pointing that out. It's now
alias lua='lua -l mathx -e "math=setmetatable(mathx,{__index=math})" -i'

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