CINXE.COM
Just a moment...
<!DOCTYPE html><html lang="en-US"><head><title>Just a moment...</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta name="robots" content="noindex,nofollow"><meta name="viewport" content="width=device-width,initial-scale=1"><style>*{box-sizing:border-box;margin:0;padding:0}html{line-height:1.15;-webkit-text-size-adjust:100%;color:#313131;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}body{display:flex;flex-direction:column;height:100vh;min-height:100vh}.main-content{margin:8rem auto;max-width:60rem;padding-left:1.5rem}@media (width <= 720px){.main-content{margin-top:4rem}}.h2{font-size:1.5rem;font-weight:500;line-height:2.25rem}@media (width <= 720px){.h2{font-size:1.25rem;line-height:1.5rem}}#challenge-error-text{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0IyMEYwMyIgZD0iTTE2IDNhMTMgMTMgMCAxIDAgMTMgMTNBMTMuMDE1IDEzLjAxNSAwIDAgMCAxNiAzbTAgMjRhMTEgMTEgMCAxIDEgMTEtMTEgMTEuMDEgMTEuMDEgMCAwIDEtMTEgMTEiLz48cGF0aCBmaWxsPSIjQjIwRjAzIiBkPSJNMTcuMDM4IDE4LjYxNUgxNC44N0wxNC41NjMgOS41aDIuNzgzem0tMS4wODQgMS40MjdxLjY2IDAgMS4wNTcuMzg4LjQwNy4zODkuNDA3Ljk5NCAwIC41OTYtLjQwNy45ODQtLjM5Ny4zOS0xLjA1Ny4zODktLjY1IDAtMS4wNTYtLjM4OS0uMzk4LS4zODktLjM5OC0uOTg0IDAtLjU5Ny4zOTgtLjk4NS40MDYtLjM5NyAxLjA1Ni0uMzk3Ii8+PC9zdmc+);background-repeat:no-repeat;background-size:contain;padding-left:34px}@media (prefers-color-scheme:dark){body{background-color:#222;color:#d9d9d9}}</style><meta http-equiv="refresh" content="390"></head><body class="no-js"><div class="main-wrapper" role="main"><div class="main-content"><noscript><div class="h2"><span id="challenge-error-text">Enable JavaScript and cookies to continue</span></div></noscript></div></div><script>(function(){window._cf_chl_opt={cvId: '3',cZone: "stackoverflow.com",cType: 'managed',cRay: '8e78762d1cee8988',cH: 'QZ2D3dfXQY8G67yi2KdZp78ndo5BuQitwxDxKk9ArnE-1732441479-1.2.1.1-YYsp_UoLPPlKmuBmCiz9pcKbyrPZt73zuITIByOC7gbMjlNvWkN0VUGuy.2llNv8',cUPMDTk: "\/questions\/5559138\/input-list-to-a-pure-function?__cf_chl_tk=6YyRj4.Ec_7dwahhspbC7Fk9IVu3YIzdRxMr4M1JPCA-1732441479-1.0.1.1-GwMdjmGz5acFdx1V7d8BnIqBZwW9AUV8ibr8ECnQ258",cFPWv: 'g',cITimeS: '1732441479',cTTimeMs: '1000',cMTimeMs: '390000',cTplC: 0,cTplV: 5,cTplB: 'cf',cK: "",fa: "\/questions\/5559138\/input-list-to-a-pure-function?__cf_chl_f_tk=6YyRj4.Ec_7dwahhspbC7Fk9IVu3YIzdRxMr4M1JPCA-1732441479-1.0.1.1-GwMdjmGz5acFdx1V7d8BnIqBZwW9AUV8ibr8ECnQ258",md: "2JTW3FNstqqOh0RayFB6Hw_lq8d5iAIAVvT8igOcfgA-1732441479-1.2.1.1-_C75OKAmPVii.rjDLCxJOXSQ1ymRt8yjqR8iXszh92YcaZGLZrNIf7hAodCONJMjTKyjy6zjaHF5Wy1RWl3PjfYt_f6AZ340cZPjQ3Thj3QPw8JNTj9VGfejgCZ5UfWxJxIvmhaXU7I7QRQ_9JOdtKGUyc7gEYNGB.7_8s9fTj6rS7zqyFHbmxMBc6psN8lDxjuTFDSzwxhN_FJ5PrqJnPQ.M0GZZwmnFern7pOCYGKZPE4zLiDsD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Sx.fMxKlfKQAn1pLVBcbzd6tOWnnT.IxjR2mfBpCKGMra2TVtHdiLghlO1L8npLcON.cIHvKOICMdLxbngObZmZygvzNVo9Enyyh.CVaOiCUNrdGim7GZw8RLMS.XOj3SXp1phClsAhDm9d7c.CAMgKrRp3EFldFX0cZRV_rs1dmsv4gUM0td6HSvLNyLvJ.2HUpaQmkqb8bgFczSkcfz5TNG3ymBE_yjFIYGZAThLLgIv0NgJRgW04lS62BOgFbvWHnL.b6zTbI8twTtqTVz1b41ZTE.SwJOLWOMrpn_zZEmBwodRmZmNqtQNHkLKWyvcEYhT1_4edJIkDyOcABRcF4EgVkM0NDLdLtFGih6ZWcrh43.OWj6Elw4L3c4hPRFOcoDK0YukgRo5y6CFHNu_6e38mre5LYVsVsIjWPV5CfTDpXdosDP6eaIXHU0zY1m_BQ8FSSkaBlc0dZB0wLRC3TOjSS.IKMm2s5xWt9OBnxaZ_UtiF08jk81DgXpa2YOn"};var cpo = document.createElement('script');cpo.src = '/cdn-cgi/challenge-platform/h/g/orchestrate/chl_page/v1?ray=8e78762d1cee8988';window._cf_chl_opt.cOgUHash = location.hash === '' && location.href.indexOf('#') !== -1 ? '#' : location.hash;window._cf_chl_opt.cOgUQuery = location.search === '' && location.href.slice(0, location.href.length - window._cf_chl_opt.cOgUHash.length).indexOf('?') !== -1 ? '?' : location.search;if (window.history && window.history.replaceState) {var ogU = location.pathname + window._cf_chl_opt.cOgUQuery + window._cf_chl_opt.cOgUHash;history.replaceState(null, null, "\/questions\/5559138\/input-list-to-a-pure-function?__cf_chl_rt_tk=6YyRj4.Ec_7dwahhspbC7Fk9IVu3YIzdRxMr4M1JPCA-1732441479-1.0.1.1-GwMdjmGz5acFdx1V7d8BnIqBZwW9AUV8ibr8ECnQ258" + window._cf_chl_opt.cOgUHash);cpo.onload = function() {history.replaceState(null, null, ogU);}}document.getElementsByTagName('head')[0].appendChild(cpo);}());</script></body></html>