<div dir="ltr">Hi Leonhard,<div><br></div><div>the function is called catMaybes.</div><div><br></div><div>Hoogle is a good way to find it: <a href="https://hoogle.haskell.org/?hoogle=%5BMaybe+a%5D+-%3E+%5Ba%5D">https://hoogle.haskell.org/?hoogle=%5BMaybe+a%5D+-%3E+%5Ba%5D</a></div><div><br></div><div>Cheers,</div><div>Simon</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mi., 1. Mai 2019 um 13:05 Uhr schrieb Leonhard Applis <<a href="mailto:Leonhard.Applis@protonmail.com">Leonhard.Applis@protonmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hey there, <br></div><div><br></div><div>I've got a method:<br></div><div style="color:rgb(51,51,51);background-color:rgb(245,245,245);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-weight:normal;font-size:14px;line-height:19px;white-space:pre-wrap"><div><br></div><div><span style="color:rgb(170,55,49)"><b>demaybefy</b></span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(75,105,198)">::</span><span style="color:rgb(51,51,51)"> [</span><span style="color:rgb(122,62,157)">Maybe</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(122,62,157)">a</span><span style="color:rgb(51,51,51)">] </span><span style="color:rgb(75,105,198)">-></span><span style="color:rgb(51,51,51)"> [</span><span style="color:rgb(122,62,157)">a</span><span style="color:rgb(51,51,51)">]</span><br></div><div><span style="color:rgb(51,51,51)">demaybefy </span><span style="color:rgb(156,93,39)">[]</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(119,119,119)">=</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(156,93,39)">[]</span><br></div><div><span style="color:rgb(51,51,51)">demaybefy (x</span><span style="color:rgb(119,119,119)">:</span><span style="color:rgb(51,51,51)">xs) </span><span style="color:rgb(119,119,119)">=</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(75,105,198)">case</span><span style="color:rgb(51,51,51)"> x </span><span style="color:rgb(75,105,198)">of</span><br></div><div><span style="color:rgb(156,93,39)"> Just</span><span style="color:rgb(51,51,51)"> x </span><span style="color:rgb(119,119,119)">-></span><span style="color:rgb(51,51,51)"> x </span><span style="color:rgb(119,119,119)">:</span><span style="color:rgb(51,51,51)"> demaybefy xs</span><br></div><div><span style="color:rgb(156,93,39)"> Nothing</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(119,119,119)">-></span><span style="color:rgb(51,51,51)"> demaybefy xs</span><br></div></div><div class="gmail-m_129755913819676811protonmail_signature_block gmail-m_129755913819676811protonmail_signature_block-empty"><div class="gmail-m_129755913819676811protonmail_signature_block-user gmail-m_129755913819676811protonmail_signature_block-empty"><br></div><div class="gmail-m_129755913819676811protonmail_signature_block-proton gmail-m_129755913819676811protonmail_signature_block-empty"><br></div></div><div><br></div><div>However, i feel that there is a method from preload/list/maybe that does exactly the same, but i cannot find it. <br></div><div>Can someone help me? <br></div><div><br></div><div>best regards <br></div><div>Leonhard<br></div>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div>