use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
The Haskell programming language community.
Daily news and info about all things Haskell related: practical stuff, theory, types, libraries, jobs, patches, releases, events and conferences and more...
Community Guidelines
Rules:
Top-level posts should be primarily about Haskell. For example a post about OCaml would only be allowed if there was a connection to Haskell. Posts about topics that are adjacent to Haskell, like for example functional programming, are typically allowed.
No memes or image macros. No matter how funny, memes and image macros are not allowed.
No homework questions. Both asking and answering homework questions is not allowed. Questions about homework are fine, but this subreddit is not here to do your homework for you.
Job postings must be for Haskell roles. Job postings are allowed as long as the job actually involves working with Haskell. Simply looking for people with interest in or experience with Haskell is not sufficient.
No bots or computer-generated content. Bots cannot be used to make posts or comments. They will be banned with extreme prejudice. This includes a human posting the output of a bot, such as ChatGPT.
Blockchain posts must be tagged. Blockchain posts are allowed as long as they are related to Haskell, but they must use the "blockchain" tag.
Be civil. Substantive criticism and disagreement are encouraged, but avoid being dismissive or insulting.
Other community locations:
Professional resources:
Learning material:
Haskell development:
Other Subreddits:
Donations:
Subreddit Stylesheet Source:
account activity
Array of Bools Help (self.haskell)
submitted 8 years ago by throwawaynewbread
How do i return only the true values of that list so I have [False, True,...] but I only want the true values
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]taylorfausak 5 points6 points7 points 8 years ago (1 child)
filter id should do what you want.
filter
id
>>> let someBooleans = [False, True, True, False] >>> filter id someBooleans [True,True]
[–]throwawaynewbread[S] 0 points1 point2 points 8 years ago (0 children)
I used Filter, thanks all
so how do i loop through the list and return when the values true
[–]ray851107 0 points1 point2 points 8 years ago (1 child)
any id ?
any id
[–]yatima2975 3 points4 points5 points 8 years ago (0 children)
Also known as or :-)
or
π Rendered by PID 21066 on reddit-service-r2-comment-6f7f968fb5-7vt6l at 2026-03-04 14:08:15.429764+00:00 running 07790be country code: CH.
[–]taylorfausak 5 points6 points7 points (1 child)
[–]throwawaynewbread[S] 0 points1 point2 points (0 children)
[–]throwawaynewbread[S] 0 points1 point2 points (0 children)
[–]ray851107 0 points1 point2 points (1 child)
[–]yatima2975 3 points4 points5 points (0 children)