[elm-discuss] Re: Demo: simple writing app with word counter and timer

2016-07-03 Thread Carlos De la Guardia
Looks like it could be a good solution. Thanks for the feedback. On Sunday, July 3, 2016 at 11:10:18 PM UTC-4, David Legard wrote: > > Style 3 is very nice. > > As to word counting, it shouldn't be that hard to figure out an algorithm > which removes the need to traverse the entire string. > > F

[elm-discuss] Re: Demo: simple writing app with word counter and timer

2016-07-03 Thread David Legard
Style 3 is very nice. As to word counting, it shouldn't be that hard to figure out an algorithm which removes the need to traverse the entire string. For example, every time the current location is a space and the next keystroke is a non-space, you have begun a new word. -- or -- every time t