someMethod :: [[a]] -> [Int]
someMethod = map length
There's a list, haskell-beginners better suited for this kind of question.
Alex
On Saturday 10 April 2010 18:02:37 boblettoj wrote:
> Hi i want to know if there is any method i can use to count the number of
> items in each list in a list of l
Look at it from the inside, out.
What does const do?
Const is a function that takes two parameters and always returns the first
one. For instance, const True x is True, for all x.
What's \x -> map (const x) then? (or map.const in my case)
It's a function that takes something and maps all the
Too many points.
listbool :: [[a]] -> [[Bool]]
listbool = zipWith ($) (map (map . const) (cycle [True, False]))
Cheers,
Alex
On Saturday 03 April 2010 15:13:48 Edward Z. Yang wrote:
> Excerpts from Maur Toter's message of Sat Apr 03 09:54:26 -0400 2010:
> > I am new with Haskell so I think this
mrt 2010, at 21:33, Brian Alliet wrote:
> > On Fri, Mar 26, 2010 at 08:01:57PM +, Alexandru Scvortov wrote:
> >> I'm thinking of writing a library for analyzing/generating/manipulating
> >> JVM bytecode. To be clear, this library would allow one to load and
> &g
Hi,
I've got an idea for a Summer of Code project and I'd really appreciate some
feedback on it. If people generally find it interesting, I'll go into more
detail.
GSoC: Haskell JVM bytecode library
==
What
I'm thinking of writing a library for analyzing
Quick question.
In Linux, if you want to find the PID of a process, you use getProcessID from
System.Posix.Process.
How do you do the same under Windows? I cannot find the equivalent function
in System.Win32 and searching Google does not yield any useful results.
Thanks.
_