<html><body>This new notation will enable you a new way to create functions<div><br></div><div>`.map(...)` produces `<span style="background-color:transparent">(parameter) => parameter.map(...)</span><span style="background-color:transparent">`, it is not evaluated, it is a function definition</span></div><div><div><br></div><div>I cannot say I like it. To me it is less readable, confusing to be exact. Anything leading with `.` (dot), seems unusual</div><div><br></div><div><div dir="auto" style="font-family:'segoe ui','segoe ui web',arial,verdana,sans-serif;font-size:12px;margin:0px;padding:0px;direction:ltr"><p style="padding:0px;vertical-align:baseline"><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:calibri,calibri_msfontservice,sans-serif"></span></p><p style="color:rgb(0,51,153);padding:0px;vertical-align:baseline"><br></p></div><aside>
---------- Původní e-mail ----------<br>
Od: Scott Rudiger <scottrudiger@gmail.com><br>
Komu: Simon Farrugia <simonfarrugia26@gmail.com><br>
Datum: 21. 6. 2019 15:30:53<br>
Předmět: Re: Proposal: Selector/Select Expression
</aside><br><blockquote data-email="scottrudiger@gmail.com"><div dir="auto"><div>I can appreciate the intent of the proposal. 👍</div><div dir="auto"><br></div><div dir="auto">Minor nit with one of the examples:</div><div dir="auto"><br></div><div dir="auto"><div style="font-family:'segoe ui','segoe ui web',arial,verdana,sans-serif;font-size:12px;margin:0px;padding:0px;direction:ltr" dir="auto"><p style="margin:0px;padding:0px;vertical-align:baseline"><span style="margin:0px;padding:0px;font-size:11pt;font-family:calibri,calibri_msfontservice,sans-serif;line-height:18px"><span style="margin:0px;padding:0px">// user[] => email[] (With Arrays)</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:'calibri','calibri_msfontservice',sans-serif"> </span></p></div><div style="font-family:'segoe ui','segoe ui web',arial,verdana,sans-serif;font-size:12px;margin:0px;padding:0px;direction:ltr" dir="auto"><p style="margin:0px;padding:0px;vertical-align:baseline"><span style="margin:0px;padding:0px;font-size:11pt;font-family:calibri,calibri_msfontservice,sans-serif;line-height:18px"><span style="margin:0px;padding:0px">const getEmailsList = users => users.map(user => user.contacts.email);</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:'calibri','calibri_msfontservice',sans-serif"> </span></p></div><div style="font-family:'segoe ui','segoe ui web',arial,verdana,sans-serif;font-size:12px;margin:0px;padding:0px;direction:ltr" dir="auto"><p style="margin:0px;padding:0px;vertical-align:baseline"><span style="margin:0px;padding:0px;font-size:11pt;font-family:calibri,calibri_msfontservice,sans-serif;line-height:18px"><span style="margin:0px;padding:0px">const getEmailsList = .map(.contacts.email);</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:'calibri','calibri_msfontservice',sans-serif"> </span></p></div><div style="margin:0px;padding:0px;direction:ltr" dir="auto"><p style="font-family:'segoe ui','segoe ui web',arial,verdana,sans-serif;font-size:12px;margin:0px;padding:0px;vertical-align:baseline"><span style="margin:0px;padding:0px;font-size:11pt;font-family:'calibri','calibri_msfontservice',sans-serif;line-height:18px"><span style="margin:0px;padding:0px">```</span></span></p><p style="font-family:'segoe ui','segoe ui web',arial,verdana,sans-serif;font-size:12px;margin:0px;padding:0px;vertical-align:baseline"><span style="margin:0px;padding:0px;font-size:11pt;font-family:'calibri','calibri_msfontservice',sans-serif;line-height:18px"><span style="margin:0px;padding:0px"><br></span></span></p><p style="font-family:'segoe ui','segoe ui web',arial,verdana,sans-serif;font-size:12px;margin:0px;padding:0px;vertical-align:baseline"><span style="margin:0px;padding:0px;font-size:11pt;font-family:'calibri','calibri_msfontservice',sans-serif;line-height:18px"><span style="margin:0px;padding:0px">I would think with the proposal you'd still need to reference `users`. Otherwise what are we mapping?</span></span></p><p style="font-family:'segoe ui','segoe ui web',arial,verdana,sans-serif;font-size:12px;margin:0px;padding:0px;vertical-align:baseline"><span style="margin:0px;padding:0px;font-size:11pt;font-family:'calibri','calibri_msfontservice',sans-serif;line-height:18px"><span style="margin:0px;padding:0px"><br></span></span></p><p style="margin:0px;padding:0px;vertical-align:baseline"><font face="calibri, calibri_msfontservice, sans-serif"><span style="font-size:14.6667px">```</span></font></p><p style="margin:0px;padding:0px;vertical-align:baseline"><span style="margin:0px;padding:0px;font-size:11pt;font-family:calibri,calibri_msfontservice,sans-serif;line-height:18px"><span style="margin:0px;padding:0px">const getEmailsList = users.map(.contacts.email);</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:calibri,calibri_msfontservice,sans-serif"> </span><font face="calibri, calibri_msfontservice, sans-serif"><span style="font-size:14.6667px"><br></span></font></p><p style="margin:0px;padding:0px;vertical-align:baseline"><font face="calibri, calibri_msfontservice, sans-serif"><span style="font-size:14.6667px">```</span></font></p></div><br><div dir="auto"><div dir="ltr">On Fri, Jun 21, 2019, 4:49 AM Simon Farrugia <<a href="mailto:simonfarrugia26@gmail.com">simonfarrugia26@gmail.com</a>> wrote:<br></div><blockquote style="margin:0 0 0 0.8ex;border-left:1px#ccc solid;padding-left:1ex"><div dir="ltr"><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">Selector/</span></span><span style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">Select</span></span><span style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit"> Expression</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none"><span style="margin:0px;padding:0px;background-color:inherit"></span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">Doing functional & reactive programming is currently really verbose in JavaScript. </span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">Hopefully this issue will be alleviated with the addition of the pipe operator in the near future.</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none"><span style="margin:0px;padding:0px;background-color:inherit"></span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">One things you end up doing most when doing </span><span style="margin:0px;padding:0px;background-repeat:repeat-x;background-position:0%100%;border-bottom:1px solid transparent;background-color:inherit">fp</span><span style="margin:0px;padding:0px;background-color:inherit"> is doing simple selections (mappings) on objects & arrays. This unfortunately becomes really verbose and repetitive.</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none"><span style="margin:0px;padding:0px;background-color:inherit"></span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">What I'm proposing is to be able to collapse/</span><span style="margin:0px;padding:0px;background-color:inherit">simplify</span><span style="margin:0px;padding:0px;background-color:inherit"> selector arrow function expressions like this:</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none"><span style="margin:0px;padding:0px;background-color:inherit"></span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-US"><span style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-US"><span style="margin:0px;padding:0px;background-color:inherit">```</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">// user => email</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">const getEmail = user => user.contacts.email;</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">```</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none"><span style="margin:0px;padding:0px;background-color:inherit"></span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">to something like this:</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none"><span style="margin:0px;padding:0px;background-color:inherit"></span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-US"><span style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-US"><span style="margin:0px;padding:0px;background-color:inherit">```</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">// user => email</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">const getEmail = .contacts.email;</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">```</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none"><span style="margin:0px;padding:0px;background-color:inherit"></span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">More examples:</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none"><span style="margin:0px;padding:0px;background-color:inherit"></span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-US"><span style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-US"><span style="margin:0px;padding:0px;background-color:inherit">```</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">// user[] => email[] (With Arrays)</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">const getEmailsList = users => users.map(user => user.contacts.email);</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">const getEmailsList = .map(.contacts.email);</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">```</span></span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none"><span style="margin:0px;padding:0px;background-color:inherit"></span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-US"><span style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-US"><span style="margin:0px;padding:0px;background-color:inherit">```</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">// Usage with pipeline operator</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">pipe(user, map(user => user.contacts.email))</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">user |> .contacts.email</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">```</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit"></span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">I think this would work really well, particularly in conjunction with the pipeline operator, resulting in more concise and expressive code improving readability.</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="background-color:transparent;color:windowtext;margin:0px;padding:0px;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">This is just syntactic sugar, but same as in the case of the pipeline operator, selector functions are so </span></span><span style="background-color:transparent;color:windowtext;margin:0px;padding:0px;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">intrinsic and </span></span><span style="background-color:transparent;color:windowtext;margin:0px;padding:0px;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">commonplace to</span></span><span style="background-color:transparent;color:windowtext;margin:0px;padding:0px;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit"> any code base, that I would think it's worth considering.</span></span><span style="background-color:transparent;color:windowtext;margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;background-color:transparent;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit"></span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div><div style="color:rgb(0,0,0);font-family:'Segoe UI','Segoe UI Web',Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p style="margin:0px;padding:0px;word-wrap:break-word;vertical-align:baseline;background-color:transparent;color:windowtext" lang="EN-GB"><span style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit">I would  appreciate hearing your thoughts.</span></span><span style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,Calibri_MSFontService,sans-serif;font-kerning:none;line-height:18px;font-variant-ligatures:none" lang="EN-GB"><span style="margin:0px;padding:0px;background-color:inherit"> Thanks.</span></span><span style="margin:0px;padding:0px;font-size:11pt;line-height:18px;font-family:Calibri,Calibri_MSFontService,sans-serif"> </span></p></div></div>
_______________________________________________<br>
es-discuss mailing list<br>
<a href="mailto:es-discuss@mozilla.org" rel="noreferrer">es-discuss@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/es-discuss" rel="noreferrer noreferrer">https://mail.mozilla.org/listinfo/es-discuss</a><br>
</blockquote></div></div></div>
_______________________________________________
<br>es-discuss mailing list
<br>es-discuss@mozilla.org
<br>https://mail.mozilla.org/listinfo/es-discuss
<br></blockquote></div></div></body></html>