I'm trying to create a dropdown and I want to use the semantics of Html to
define the options inside the dropdown.
Because of reasons I want to replace the `option` element with a `div` and
in order to do that I need to access the information inside the elements.
How can I do that?
Here is some co
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
If you're writing a library, the general rule is to keep union types opaque
(i.e. the type itself is exported but the tags are not). This allows you to
add or remove tags as you need to without committing to a major version
bump. If you wanted to export some of the tags, you'd have to export som
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
In Elm (or functional languages in general), is it preferable to show
intent using union types or functions?
See the code below for an example of what I mean. Forgive the
sudo/incomplete code
*Multiple Union Types & One Case Statement*
In this example, the "Req" union types are used to com
Howdy all,
I just put together a writing app, and you're welcome to check it out and
use it (it's hosted on github).
Here's the demo: https://dela3499.github.io/elm-writer/
And here's the repo: https://github.com/dela3499/elm-writer
One question:
I update the word count on every keystroke,