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

how do i shot arrow???

Name: Anonymous 2007-02-03 12:27

*** ??? &&&

Nah, just kidding, I kinda get them.

liftA2 :: (Arrow a) => (b -> c -> d) -> a e b -> a e c -> a e d
liftA2 p f g = f &&& g >>> (arr . uncurry) p

split :: Eq a => a -> [a] -> [[a]]
split _ [] = []
split d l  =
  ((dropWhile (== d)) ^>> (liftA2 (:) (takeArrow d) (dropArrow d >>^ (split d)))) l
  where
  takeArrow d = arr . takeWhile $ (/= d)
  dropArrow d = arr . dropWhile $ (/= d)


I wonder if this is what they are supposed to be used for though ;)  And I realized that functions are actually arrows already after writing this :/

Name: Anonymous 2007-02-03 13:12

>>1
and what happens in one week, when no one understands what kind of crap you wrote? and you forgot too why it was written?

Haskell: Functional Perl Programming for Pretentious Autistic People!

Name: Anonymous 2007-02-03 13:26

>>2
The autistic one would be you, actually. It should be pretty obvious that the op is just experimenting.

Name: Anonymous 2007-02-03 13:52

>>3
show me one line of Haskell which is not an experiment at someone's showing his e-penis...

Name: Anonymous 2007-02-03 14:54

>>4
I'll show you sour grapes and someone who tries to discredit languages he's unable or unwilling to learn with trash talk

Name: Anonymous 2007-02-03 15:31

>>3
Experimenting?  What I posted in >>1 is production code!  And I can still read it, hours after I wrote it.

Name: Anonymous 2007-02-03 15:37

production code for a discount bin game

Name: Anonymous 2007-02-03 18:38

>>7
LOL, I take it you've never worked in an Enterprise?

Name: Anonymous 2007-02-03 21:05

>>4
truth

Name: Anonymous 2007-02-04 1:38

>>1
Do a barrel roll!

import Control.Arrow

split :: Eq a => a -> [a] -> [[a]]
split d =
    barrelRoll ((fmap fst . takeWhile (/=([],[])) . snd) &&&
                (uncurry (:) . (uncurry (***)
                                ((id &&& (fmap . (flip (.) snd)))
                                 ((break (== d)) . (dropWhile (== d)))))))
    where
      barrelRoll = loop

Name: Anonymous 2007-02-04 4:21

>>6
I would fire you from my team if you wrote this kind of crap as "production" code.

Name: Anonymous 2007-02-04 5:41

>>10
Well, you Sir, are the winnar :X

I've got to study for a couple days to get this.

Name: Anonymous 2007-02-06 0:55

So tell me, what's the real point of having arrows? It seems to me like it's just an overcomplicated and over-syntax'd wrapper to make functions look like monads. Which is kinda something we already have a special syntax for, right?

Maybe I'm just not getting it. On the other hand, I haven't seen any arrow instances that weren't functions, either!

Name: Anonymous 2007-02-06 5:36

>>13
They can do everything monads can do, and more ;)  (I don't really know what monads can do though)

Name: Anonymous 2007-02-06 6:48

Omae monad

Name: Anonymous 2009-01-14 4:13

>>13
Arrows are useful for showing directions.

Name: Anonymous 2010-12-17 1:32

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Name: Anonymous 2011-02-03 0:52

Name: Anonymous 2011-02-17 19:43

that's cool and all, but check my doubles over there<

Name: Sgt.Kabu��kiman⛈璶 2012-05-28 22:13

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Name: Anonymous 2013-08-31 20:03


After class I start following the her in a totally not-stalker-y way. She somehow eludes me, and I end up at some festival thing where I play some scavenger hunt game which consisted of finding candy in tall grass. And then I woke up.

Name: Anonymous 2013-08-31 21:33


i'm going to guess the bugs in the expansion extend to the routes, too. this route is suppossed to be really easy (it's similar to the route in "The Dungeon of Dreams and Magic" that had nothing but Nazrin's in it), yet as far as i can tell it never ends and frequently throws Monster Rooms filled with high level monsters.

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