[Haskell-beginners] how to split a list

Francesco Ariis fa-ml at ariis.it
Mon Mar 26 19:01:48 UTC 2018


On Mon, Mar 26, 2018 at 06:26:19PM +0000, PICCA Frederic-Emmanuel wrote:
> I imagine that you mean fst instead of snd in order to produce the right output :)

Indeed :P

> How can I check if this code produce list copies and is efficient with big lists ?

`time` and profiling tools provided by GHC [1]

If you feel lost, shout and I'll set up and example

[1] http://book.realworldhaskell.org/read/profiling-and-optimization.html


More information about the Beginners mailing list