Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Fibonacci Butt Sort

Name: Anonymous 2009-08-16 23:08

Let us discuss the various implementations of theFIBONACCI BUTT SORT.

Name: Anonymous 2009-09-03 19:33

SAGE IF YOU"RE JUST TESTING YOUR BUTTSORT PLEASE

Also, >>119
Buttsort fail.

Name: Anonymous 2009-09-03 19:40

>>120
Your buttsort is out of proper phase.

Name: Anonymous 2009-09-03 20:03

I feel that I am not capable of programing buttsorts. Should I quit programming now or just try a lot harder?

Name: Anonymous 2009-09-03 20:06

>>123
Dont feel too bad about it. Buttsorts requires advanced knowledge of parsing and string manipulation. They are a good exercise for an expert programmer, but for a beginner like yourself you shouldn't try and tackle them until you've learned enough about the aforementioned subjects.

Name: Anonymous 2009-09-03 20:15

Name: Anonymous 2009-09-03 20:15

>>124-chan here. Disregard that, I suck cocks! Buttsorting might be advanced material for Prague, but in the grand Scheme of things it's a fairly elementary exercise for anyone with a few weeks of experience. Also, ignore my next post, since I'll just be trolling you with it anyway. Have a nice anus !!

Name: /prog/snake 2009-09-03 20:19

>>125 My Twitter is 2nd ;_;

Name: Anonymous 2009-09-03 20:22

>>125
A Fibonacci Buttsort is an operation that can be performed on a string which outputs the string with alternating underline and overline tags.
THIS IS A FIBONACCI BUTTSORT

Name: Anonymous 2009-09-03 20:55

>>128
oh great master enlighten us in the ways of the
FIBONACCI BUTTSORT

Name: Anonymous 2009-09-03 20:58

YOU FORGOT YOUR BOLD AND ITALIC TAGS

Name: sage 2009-09-03 21:05

>>130
Why do you think that I asked for help?
You forgot to sage, FTFY

Name: Anonymous 2009-09-03 22:19

>>111
WTF IS super(THIS); SHIT?

Name: Anonymous 2009-09-04 4:53

>>123
Uh. It's really simple string manipulation. You may want to consider your skill in various other problem domains before reaching a decision.

Name: Anonymous 2009-09-04 6:19

HELLO CHRYZZY

Name: Anonymous 2009-09-06 13:46

LOL SORTING STEPHANIE'S BUTT!

Name: Anonymous 2009-09-06 14:08

stuff = map(int,raw_input('Enter your numbers:').split(' '))
stuff.sort()
for num in stuff:
    print num,

Name: Anonymous 2009-09-07 7:22

############_________###_____________________________________###_________############
#############_______###____######_____________________________###_______#############
___________###______###___##____##____________________________###______###___________
___________###_____###____##____##_______________########______###_____###___________
____________###___###______######_______________##______##______###___###____________
____________###___###__________________________##________##_____###___###____________
_____________###__###__________________________##________##_____###__###_____________
_____________###__###___________________________##______##______###__###_____________
______________###__###___________________________########______###__###______________
______________###___###_______________________________________###___###______________
_______________###__###_______#################_______________###__###_______________
_____________________###______#################______________###_____________________

Name: Anonymous 2009-09-07 12:29

just testing
expert programmer

Name: Anonymous 2009-09-07 12:38

-- buttsort.hs - an implementation of the Fibonacci Buttsort
import Data.Char (isSpace)
import Control.Monad.State

data Tag = Tag String
           deriving (Show, Eq)

class Text a where
    value :: a -> String

instance Text Char where
    value = (:[])

instance (Text a) => Text [a] where
    value = concatMap value

(<<) :: (Text a) => Tag -> a -> String
infixr <<
(Tag t) << x = "[" ++ t ++ "]" ++ value x ++ "[/" ++ t ++ "]"

[b, i, o, u, m] = map Tag ["b", "i", "o", "u", "m"]

buttsortW, buttsortC :: String -> String
buttsortW = (b <<) . (i <<) . unwords . zipWith (<<) (cycle [u, o]) . words
buttsortC = (b <<) . (i <<) . concat . flip evalState (cycle [u, o]) . mapM f
  where f c = if isSpace c then return [c]
                else do t <- get
                        modify tail
                        return $ head t << c


EXPERT HASKELL PROGRAMMING

Name: Anonymous 2009-09-07 17:24

>>139
That looks remarkably like the one I posted in the other thread — whereëver it went — in the control flow and use of cycle, anyway.

________
tag t str = "[" ++ t ++ "]" ++ str ++ "[/" ++ t ++ "]"
[b,i,o,u] = tag `map` words "b i o u"

dabs = b . i . unwords . zipWith id (cycle [o,u]) . words
fbs = b . i . concat . flip evalState (cycle [o,u]) . mapM f where
    f ' ' = return " "
    f c = (liftM . concatMap) ($ [c]) (State $ splitAt 1)

Name: Anonymous 2009-09-07 18:44

>>140
Great minds think alike, I guess.

Name: Anonymous 2009-09-07 19:47

TESTING MY TOUPPERCASE BUTTSORT (*83

Name: Anonymous 2009-09-07 19:48

>>142
FORGOT MY SAGE

Name: Anonymous 2009-09-07 19:50

>>142
>>143
Too little, too late.

Name: Anonymous 2009-09-09 8:56

Name: Anonymous 2009-09-09 15:29

>>145
What is the meening of this poast?

Name: Anonymous 2009-09-09 15:40

>>146
( ≖‿≖)

Name: Anonymous 2009-09-09 15:45

>>146
RedCream Detected

Forgot your poohippo@hotmail.com, bro

Name: Anonymous 2009-09-09 22:52

[tt]test[/tt]

Name: Anonymous 2009-09-11 0:05

>>149
fail

Name: Anonymous 2009-09-15 22:55

fibonaccci butt sort

Name: Anonymous 2009-09-17 4:42

FIBONACCI BUTT SORT

Name: Anonymous 2009-11-14 15:06

[u]fi[]/ubo[]/un[]/u[]/uacci[]/u []/u[]/ubu[]/u[]/uttsor[]/u[]/u

Name: Anonymous 2009-11-14 15:09

>>153
LOLLING

^^^^ HAY EVERYONE LOOK AT THIS INTENSE FAILURE ^^^^^^

Name: Anonymous 2009-11-14 15:12

>>153
ahahhahhahahahha!

Name: Anonymous 2009-11-14 15:47

SCUURMPSRHIOSTE

Name: Anonymous 2009-11-14 15:51

>>156
Now that's just mean.

Name: Anonymous 2009-11-14 20:11

PBAANMTPSUU

Name: ¬¬ 2009-11-14 20:23

>>156
I wasn't surprised at all

Name: Anonymous 2009-11-14 20:32

ithinkit'stimetokillyourself

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List