Can .substring be made to handle an empty result?

2021-03-26 Thread Jim Avera
I'm trying to use .substring to remove the first character of a string, leaving behind whatever follows, even if that is nothing (i.e. the string had only one character).   .substring str 1 or   .length n2 "\*[str]   .nr n2 -1   .substring str 1 \n[n2] (if n2 is omitted, it appears to defaul

Re: Interesting articles

2021-03-26 Thread H.J. Oertel
Am 26. März 2021 09:03:41 MEZ schrieb Ulrich Lauther : >On Thu, Mar 25, 2021 at 10:30:57PM -0400, Larry Kollar wrote: >> Sometimes, my Twitter feed coughs up some cool articles, like >> this one: "Performance comparison: counting words in Python, >> Go, C++, C, AWK, Forth, and Rust” >> >> http

Re: Interesting articles

2021-03-26 Thread Ulrich Lauther
On Thu, Mar 25, 2021 at 10:30:57PM -0400, Larry Kollar wrote: > Sometimes, my Twitter feed coughs up some cool articles, like > this one: "Performance comparison: counting words in Python, > Go, C++, C, AWK, Forth, and Rust” > > https://benhoyt.com/writings/count-words/ > > The Awk solution was b

Re: Interesting articles

2021-03-26 Thread John Gardner
Of course, *both* solutions are inadequate when you consider languages other than English (especially agglutinative languages like Hungarian and Turkish). For example, how many "words" are in " *muvaffakiyetsizleştiriciveremeyebileceklerimizdenmişsini