[prev in list] [next in list] [prev in thread] [next in thread]
List: haskell-beginners
Subject: Re: [Haskell-beginners] (SPAM 3)Re: (SPAM 3)Re: database, list result, extraction and conversion
From: Francesco Ariis <fa-ml () ariis ! it>
Date: 2018-12-07 8:59:56
Message-ID: 20181207085956.2tmvjeczk23gf5d4 () x60s ! casa
[Download RAW message or body]
On Fri, Dec 07, 2018 at 09:44:03AM +0100, Damien Mattei wrote:
> let noBD = fromOnly (Prelude.head bd_rows)
>
> give me a solution, but i'm still searching a solution with map has in a
> list there could be more than one result...
So put this in your code
let noBD = map _ bd_rows
`_` will tell the compiler "tell me which type goes there". Then you
can choose the appropriate function!
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic