Date: 2013-01-18 02:55 am (UTC)From: [personal profile] winterkoninkje
winterkoninkje: shadowcrane (clean) (Default)
For your enjoyment:

domain :: Finite a => [a]
domain = toList . execWriter . assemble $ tell . return


Where toList is from DList and brings the runtime down to O(n) instead of O(n^2) due to the writer monad always appending to the right.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

April 2019

S M T W T F S
 123456
78910111213
14151617181920
212223242526 27
282930    

Tags

Page generated 24 Jun 2025 04:34 am
Powered by Dreamwidth Studios