`<<` is just a function that takes two functions and combines them. It's signature looks like this:
(<<) : (b -> c) -> (a -> b) -> a -> c so, given a function that takes `a` and returns `b` and a function that takes `b` and returns `c`, produce a function that takes `a` and produces `c` In your case, this means that the person record will first go through `.name` which would extract the name; the name goes through `String.toLower` which would convert the string to lowercase; the lowercase version will then go through the function obtained through the partial application: `String.contains lowerQuery` All this will result into one function that will check if the lower version of the name contains the string in `lowerQuery`. This final function will be then used to filter the people. On Fri, Oct 7, 2016 at 2:46 PM, António Ramos <[email protected]> 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- There is NO FATE, we are the creators. blog: http://damoc.ro/ -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
