On Thu, Jan 10, 2019 at 12:11 PM Henning Hraban Ramm wrote:
>
> a Lua pairs table, the order can be arbitrary.
>
sure , the *default* __pairs gives pseudo-arbitrary order, but you can
always use metatable:
--
-- test.lua
--
local _c,_t=0,{}
local t = {}
setmetatable(t, {
__newindex =
On 1/10/2019 12:11 PM, Henning Hraban Ramm wrote:
Am 2019-01-10 um 10:50 schrieb luigi scarso :
sections = { “1”, “2”, “2a” }
words = { [“1”] = { “a”, “b” },
[“2a”] = { “c”, “d” } }
so I can iterate through ipairs(sections) in sequence and pick up the word
lists for each section.
Am 2019-01-10 um 10:50 schrieb luigi scarso :
>> sections = { “1”, “2”, “2a” }
>>
>> words = { [“1”] = { “a”, “b” },
>> [“2a”] = { “c”, “d” } }
>>
>> so I can iterate through ipairs(sections) in sequence and pick up the word
>> lists for each section. In the greater scheme of things,
On Thu, Jan 10, 2019 at 10:27 AM Schmitz Thomas A. <
thomas.schm...@uni-bonn.de> wrote:
>
>
> > On 10. Jan 2019, at 01:08, Hans Hagen wrote:
> >
> > it all depends on use ... if you can be more specific ...
>
> Hans, Luigi,
>
> thanks for your hints on list sorting - they are appreciated, but
> On 10. Jan 2019, at 01:08, Hans Hagen wrote:
>
> it all depends on use ... if you can be more specific ...
Hans, Luigi,
thanks for your hints on list sorting - they are appreciated, but I’ve been
there many many times: it’s impossible to be more specific because numbering
can be
Am 2019-01-09 um 20:57 schrieb Thomas A. Schmitz :
> I've finished testing my lua script, and it does exactly what I need. I think
> I'll write a small article about it for one of the next context group
> proceedings,
Hi Thomas, since I’m just starting to work on the current CG journal (sorry,
On 1/9/2019 9:38 PM, Alan Braslau wrote:
On Wed, 9 Jan 2019 20:57:21 +0100
"Thomas A. Schmitz" wrote:
3. Lua's handling of tables is very efficient and fast. For analyzing my
Greek texts, I have to use huge tables for morphological parsing, with
more than 900,000 entries. Looking up words in
On 1/9/2019 8:57 PM, Thomas A. Schmitz wrote:
I've finished testing my lua script, and it does exactly what I need. I
think I'll write a small article about it for one of the next context
group proceedings, but wanted to just give a very brief summary that
might be of interest to some:
Pure
On Wed, 9 Jan 2019 20:57:21 +0100
"Thomas A. Schmitz" wrote:
> 3. Lua's handling of tables is very efficient and fast. For analyzing my
> Greek texts, I have to use huge tables for morphological parsing, with
> more than 900,000 entries. Looking up words in these tables is around 3x
> faster
On Wed, Jan 9, 2019 at 8:57 PM Thomas A. Schmitz
wrote:
>
> One final thought: one limitation that I still find cumbersome to work
> around is the fact that associative arrays ("pairs" in Lua speak) do not
> have an order. When I analyze my texts, I want book numbers, chapters,
> paragraphs
10 matches
Mail list logo