Re: [elm-discuss] Outgoing port event ordering

2016-10-16 Thread Janis Voigtländer
Peter, the problem in David’s case is that the actions he wants to order execution of are port data sending, and there is no “something lower level, like Tasks” for that. The only API available for port data sending is Cmd -based. ​ 2016-10-15 23:06 GMT+02:00 Peter Damoc : >

Re: [elm-discuss] control structure

2016-10-16 Thread Duane Johnson
Here is an Array: ```elm import Array Array.fromList [1, 90, 5, 2] ``` http://package.elm-lang.org/packages/elm-lang/core/4.0.5/Array Note that in many cases a list is preferred to an Array (and they are treated as separate types in Elm). Lists are for sequences of things that need to be

[elm-discuss] Re: This week, we hit 5000+ users on Slack

2016-10-16 Thread Robin Heggelund Hansen
This is awesome! Way to go, team :D mandag 17. oktober 2016 01.33.47 UTC+2 skrev Noah Hall følgende: > > From our Slack weekly update: > > > In total there are 5190 people on your team (up 210 from last week) > (that's not including 11 disabled accounts). > > I think that's pretty cool. Lots of

[elm-discuss] This week, we hit 5000+ users on Slack

2016-10-16 Thread Noah Hall
>From our Slack weekly update: > In total there are 5190 people on your team (up 210 from last week) (that's not including 11 disabled accounts). I think that's pretty cool. Lots of people to help and be helped! Here's a link for anyone unfamiliar -> http://elmlang.herokuapp.com/ -- You

Re: [elm-discuss] Elm Test building custom generators

2016-10-16 Thread Max Goldstein
Fuzz.map4, which I think was only added in 2.1.0 so that's why Zachary didn't see it in August. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [elm-discuss] control structure

2016-10-16 Thread Christopher Anand
Elm has “if", like ?: in C, and the more general “case". If you don’t like the medium post below, maybe you would like http://www.cas.mcmaster.ca/~anand/ThinkingComputationallyWithElm.pdf > On Oct 16, 2016, at 6:05 PM, Patricia Nicole Benedicto > wrote: > > >

[elm-discuss] Re: Catching error in fullscreen/App.programWithFlags

2016-10-16 Thread Andreas Hultgren
Listening on the error event on the window object should work (I'm assuming the error is thrown). I.e: window.addEventListener('error', function (e) { // Not sure how to check if this is the error you're looking for (it might suck if it's triggered by some other runtime error). // Maybe a

Re: [elm-discuss] control structure

2016-10-16 Thread Patricia Nicole Benedicto
thankyou :) but how about the selection control structure and i will ask again about how elm declaring an array? :) On Wednesday, October 12, 2016 at 7:37:18 PM UTC+8, Eduardo Cuducos wrote: > > Hi Patricia, > > Elm, as a functional language, doesn't have for and while as declarative >

Re: [elm-discuss] control structure

2016-10-16 Thread Patricia Nicole Benedicto
you are the creators? On Wednesday, October 12, 2016 at 7:29:48 PM UTC+8, Peter Damoc wrote: > > What do you need repetition for? > > If you give us some examples of what you are trying to achieve, maybe we > can give you some examples of how that would look in Elm. > > If you want to process

[elm-discuss] Structure for large Elm apps

2016-10-16 Thread clouddie
Hi, are there official guidelines for structuring large scale apps ? For instance, what is the community take on things like https://github.com/rogeriochaves/structured-elm-todomvc/tree/modular ? This is quite neat although I cannot quite m'y head round the fact the Update fonctions in

Re: [elm-discuss] Good Vibes

2016-10-16 Thread Peter Damoc
On Sun, Oct 16, 2016 at 5:53 PM, John Orford wrote: > The way I see it, Elm in Action will be released alongside Elm 1.0. > I think that is more likely that Elm in Action will have a last minute editing effort in order to bring it in line with 0.19 I got very very

Re: [elm-discuss] Elm Test building custom generators

2016-10-16 Thread John Orford
Zach, did you find an answer for this in the end? On Sun, 28 Aug 2016 at 11:52 Zachary Kessin wrote: > I am banging my head against the elm-test fuzzer API. > > I have a record like this > > > type alias Location = > { id : String > , latitude : Float > ,

Re: [elm-discuss] Elm Remote Meetup #3 Videos (and #4 tomorrow)

2016-10-16 Thread John Orford
I just started watching Soren's video - good stuff, keep it up - best of luck with Daily Drip also. I subscribed to your initial Elixir videos, they were v helpful. On Wed, 21 Sep 2016 at 03:12 Josh Adams wrote: > It took me almost the entire month to actually get this done

Re: [elm-discuss] Good Vibes

2016-10-16 Thread John Orford
Peter, thanks for pouring bit of cold water on my positivity : ) ; ) I share your concerns, but every stack brings its own. Official addressing of concerns is one thing, and organic bubbling up of ideas is another. The way I see it, Elm in Action will be released alongside Elm 1.0. We'll have

Re: [elm-discuss] (at least) one example of each function in the standard library

2016-10-16 Thread Witold Szczerba
Good idea. Yesterday I was browsing Angular2 documentation and they have it. Also the RamdaJS lib which I use a lot makes great use of examples. It's often faster to figure out what the function does by looking at the example than description. It is how our brain works, I guess. 16.10.2016 7:09

Re: [elm-discuss] Good Vibes

2016-10-16 Thread Peter Damoc
On Sun, Oct 16, 2016 at 12:01 PM, John Orford wrote: > > I think we are almost past humming and hawing about whether to use Elm for > future projects. The caveats you hear about using Elm, will be ancient > history. > > What is the official, recommended and documented way

[elm-discuss] Good Vibes

2016-10-16 Thread John Orford
A few days ago I realised something - Elm is in a great place. This mailing list shows how good things are. And then yesterday I saw this very nice talk about the future of JavaScript... Jafar Husain is an engaging speaker. But the presentation was rounded out by this: