'Multiple exclamation marks,' he went on, shaking his head, 'are a
sure sign of a diseased mind.' -- from Eric by Terry Pratchett

http://wiki.lspace.org/wiki/Multiple_exclamation_marks

;)

:lachie
http://plus2.com.au
http://smartbomb.com.au
http://www.flickr.com/photos/lachie/



On Tue, Dec 8, 2009 at 10:52 PM, Mark Wotton <[email protected]> wrote:
> as it turns out, the !! operator (list !! k is more or less the same
> as list[k]) takes a machine integer, which 354224848179261915075 is
> not by some margin even in 64-bit world. The index was wrapping round
> into a negative number, which !! quite rightly got narky about.
>
> still, it's not beyond the realms of possibility that you might want
> to access an element of a list which is longer than that. Let's call
> it !!! - it's like !!, but even more emphatic.
>
> (!!!) :: (Integral i) => [b] -> i -> b
> list !!! n = head . snd $ genericSplitAt n list
>
> and with that addition, Hubris will happily fill all of memory with an
> infeasibly large number. I hope you're happy, you sneaky bastards.
>
> that URL again is http://github.com/mwotton/Hubris, don't delay,
> download now (but remember to use ghc 6.12 RC2 or the latest ghc HEAD
> sources from darcs for you Mac users. 0-day lambdawarez, people, get
> 'em while they're purely functional.)
>
> mark
> at the forefront of fibonacci research (yes i know there's a closed
> form shuttup)
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.


Reply via email to