[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Idiom for counting lines in a string
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 13 May 2014 17:39:39 +0200
Is there anything neater than this?
select(2,str:gsub('\n',''))+1