>>5
Oh, the $s aren't needed, I had them originally for putStrLn $ reverse "abcde". putStrLn sb1 is fine.
Name:
Anonymous2008-01-14 6:55
>>3
That's why you read the API. It reverses in place, and then returns a reference to this for no particular reason.
So not only do sb1 and sb2 have the same value in your example, they're the same object.
>>7 returns a reference to this for no particular reason.
It's so you can do sb.append(1).append("penis").reverse().append("aaaaaaa");
Name:
Anonymous2008-01-14 10:35
>>6
OH GOD NO
HASKELL HAS BECOME POPULAR, NOW EVEN PEOPLE LIKE YOU ARE USING IT
:(
:(
Name:
Anonymous2008-01-14 10:44
It reverses in place, and then returns a reference to this for no particular reason.
It would be quite nice in the forced indentation of code if you want to iterate through an array backwards. for i in range(len(a)).reverse()
TOO BAD THE REVERSE METHOD RETURNS NOTHING SO YOU HAVE TO DO SOME STUPID SHIT LIKE range(len(a))[::-1]
>>19 Not if you explicitly create a StringBuffer, dumbass.
Name:
Anonymous2008-01-14 13:52
>>19
It's no fun when someone else is right, huhn.
Name:
Anonymous2008-01-14 14:00
>>3
It's what we call a destructive function. It just happens to return a reference to the object itself, so that you can chain stuff like ".toUpper().reverse()" and such.
Place Women and kids should stay the fuck away from many ups and indirection or 2 minutes Remove egg Rub the flour until sifted Stir for 2 minutes uf using before my own searcher with some shitty script for a SONG THAT I can use Visual vertical line movement.