Haskell On radixSort algorithm

by SemenovEvgeni, July 22, 2010 11:26

it was very interesting to ...

928b47489462b9301d8e7026d9b074cf Talk
1
2
3
4
-- Your second example is completely contrived, seeing as the user has to annotate a type anyway, you could just write:
is_complex_simple = False
is_complex_complex = True
...

Haskell On Function to check the data ...

by liamoc, December 26, 2009 14:47
F6cb924dfb4488d701934a5485f5fa24 Talk
1
2
3
4
data Simple = Myint Int | Mydouble Double | Mystring String deriving (Eq, Show)
data Complex = Struct String [(String,Simple)] deriving (Eq, Show)

...

Haskell On Function to check the data ...

by headcrab.myopenid.com, December 08, 2009 22:19

Have written this variation...

25c35e90595b236da0fee29edb70db7f Talk

Haskell On radixSort algorithm

by jedai.myopenid.com, November 21, 2009 20:37

To have an idea of the perf...

Avatar Talk
1
2
3
import qualified Data.IntSet as IS

radixSort = IS.toList . IS.fromList

Haskell On radixSort algorithm

by Jedai, November 21, 2009 18:29

Ok... radix sort by itself ...

Dc61c1b2045efa54375188bdb6a33945 Talk

Haskell On radixSort algorithm

by sargon, November 16, 2009 23:44

joa.
But this is only a lan...

55ca8e1248605bf5e1819ce2c47c160f Talk

Haskell On radixSort algorithm

by Thomas Salvador, November 15, 2009 00:06

hi sargon:

radixsort is fa...

34db50b7ce2e115afadf5a765b950739 Talk

Haskell On radixSort algorithm

by sargon, November 10, 2009 09:37

why radixsort ?
Doesn't fi...

55ca8e1248605bf5e1819ce2c47c160f Talk
1
2
3
4
# Imports [haskell]
import Data.List (groupBy)
import Control.Arrow ((&&&))
...

Haskell On compressing an array of int...

by Kim Burgestrand, October 21, 2009 04:58

I realize this is old, but ...

Avatar Talk

Haskell On Graham scan

by erisco, July 10, 2009 23:32

Your implementation has som...

Avatar Talk

Haskell On compressing an array of int...

by sargon, April 16, 2009 06:08

_geil_

Took a moment befor...

55ca8e1248605bf5e1819ce2c47c160f Talk
1
2
3
4
import Data.List (group, mapAccumL)

compress :: [Int] -> [[Int]]
...

Haskell On compressing an array of int...

by bob, April 15, 2009 20:40

oops i didn't read the orig...

Avatar Talk

Haskell On compressing an array of int...

by Alec Leitner, April 15, 2009 18:37

Oh, I might have to learn H...

72820eaf703cd07ba9bc6ecc09e5d81a Talk
1
2
3
compress :: [Int] -> [(Int,Int)]
compress (l:ls) = reverse $ foldl (\ o@((c,i):cs) x -> if x == c + i then (c,i+1):cs else (x,1):o) [(l,1)] ls
compress [] = []

Haskell On compressing an array of int...

by sargon, April 15, 2009 17:48

"look and say sequence" has...

55ca8e1248605bf5e1819ce2c47c160f Talk
1
2
3
4
import Data.List (group)

compress :: [Int] -> [[Int]]
...

Haskell On compressing an array of int...

by bob, April 15, 2009 17:12 Star_fullStar_full

By the way your problem is ...

Avatar Talk

Haskell On Tag

by Tj Holowaychuk, April 13, 2009 15:13

Ah I was wondering what thi...

F1e3ab214a976a39cfd713bc93deb10f Talk

Haskell On Tag

by sargon, April 13, 2009 09:54

arg,
in the instance of Sh...

Avatar Talk
1
2
3
4
data Tag = Tag {
 tagType  :: String,
 tagAttrs :: [Attr]
...

Haskell On Tag

by sargon, April 13, 2009 09:51 Star_fullStar_fullStar_fullStar_fullStar_full

Using show instances for pr...

55ca8e1248605bf5e1819ce2c47c160f Talk

Haskell On Raytracer in haskell

by Tj Holowaychuk, April 10, 2009 23:12

Give me a few weeks to lear...

F1e3ab214a976a39cfd713bc93deb10f Talk

Haskell On Cat90

by Anders, March 13, 2009 02:07

I meant maxLength on line 5...

Avatar Talk
1
2
3
4
import Data.List (transpose)

main = putStr . unlines . reverse . rotate . lines =<< getContents
...

Haskell On Cat90

by Anders, March 13, 2009 02:01

Data.List has a function 't...

4f1a44133b6d68f9cd191c39aa7c986b Talk
1
2
3
pivot ps = minimum ps
-- Or in the so-called point-free style:
-- pivot = minimum

Haskell On Graham scan

by Kunshan Wang, December 26, 2008 14:16

Your pivot function finds t...

Ee59cc6f674d495e835d48437aee8152 Talk
1
2
3
4
main = do s <- getContents
          putStr $ unlines $ reverse $ rotate $ lines s

...

Haskell On Cat90

by newacct, November 12, 2008 00:33
Avatar Talk