[ create a new paste ] login | about

Link: http://codepad.org/eGFuJrHZ    [ raw code | output | fork ]

Haskell, pasted on Jan 2:
1
2
3
import List
my_list = ["one", "one", "one", "one", "two", "three", "three", "one", "one", "four", "five", "five", "five", "five"]
main = print [head xs | xs <- group my_list]


Output:
1
["one","two","three","one","four","five"]


Create a new paste based on this one


Comments: