[elm-discuss] Re: meaning of ![] ?

2016-10-03 Thread Magnus Rundberget
http://faq.elm-community.org/17.html#what-is-this---construct-in-the-code

+ when using it with an empty list it would return (model, Cmd.none). 

-magnus


On Monday, 3 October 2016 12:43:41 UTC+2, António Ramos wrote:
>
> hello
> sorry my simple question
> NoOp ->
> model ! []
>
> what does ![] mean in the above code? 
>
> regards
>

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] Re: meaning of ![] ?

2016-10-04 Thread Zachary Kessin
The Bang `!` operator takes a list of commands to run. So if you don't want
to run a command, pass an empty list.

Zach
ᐧ

On Mon, Oct 3, 2016 at 1:50 PM, Magnus Rundberget  wrote:

> http://faq.elm-community.org/17.html#what-is-this---construct-in-the-code
>
> + when using it with an empty list it would return (model, Cmd.none).
>
> -magnus
>
>
>
> On Monday, 3 October 2016 12:43:41 UTC+2, António Ramos wrote:
>>
>> hello
>> sorry my simple question
>> NoOp ->
>> model ! []
>>
>> what does ![] mean in the above code?
>>
>> regards
>>
> --
> 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 elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Zach Kessin
SquareTarget 
Twitter: @zkessin 
Skype: zachkessin

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: meaning of List.filter (String.contains lowerQuery << String.toLower << .name) people

2016-10-07 Thread Ambrose Laing
Hello,

Please take a look at this:

http://stackoverflow.com/questions/27441648/what-does-the-operator-mean-in-elm

It is very well written and answers your question.  Read the part about 
*function 
composition* and if it doesn't make sense immediately, then the rest of the 
page will be helpful.


On Friday, October 7, 2016 at 7:47:18 AM UTC-4, António Ramos wrote:
>
> hello can someone explain the meaning of  << in
> List.filter (String.contains lowerQuery << String.toLower << .name) people
>
> Regards
> António
>

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: meaning of List.filter (String.contains lowerQuery << String.toLower << .name) people

2016-10-07 Thread Ambrose Laing
Also, for future reference you can try looking at this page:

http://package.elm-lang.org/packages/elm-lang/core/latest/

And type your search term into the search field on the right.  It can make 
you more independent, though of course we're happy to help.

On Friday, October 7, 2016 at 8:31:52 AM UTC-4, Ambrose Laing wrote:
>
> Hello,
>
> Please take a look at this:
>
>
> http://stackoverflow.com/questions/27441648/what-does-the-operator-mean-in-elm
>
> It is very well written and answers your question.  Read the part about 
> *function 
> composition* and if it doesn't make sense immediately, then the rest of 
> the page will be helpful.
>
>
> On Friday, October 7, 2016 at 7:47:18 AM UTC-4, António Ramos wrote:
>>
>> hello can someone explain the meaning of  << in
>> List.filter (String.contains lowerQuery << String.toLower << .name) 
>> people
>>
>> Regards
>> António
>>
>

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.