#haskell - Mon 19 Feb 2007 between 02:57 and 03:16

NY Lost Funds



bd_could be in your client :)
sorearerc, written in lisp, probably uses lisp strings (sized vectors of char)
bd_ah, I see
goltrpoatxchat shows these 2x2 matrix determinants for \001. of singular matrices. it's quite special.
nornagonDear IRC,
Please stop distracting me. I need to do some maths homework.
Love, nornagon.
int-ethe trick is to /quit until the client disappears.
or so I've heard.
sorear@read "I hope this \192\141\192\138 doesn't work, it would be so embarassing"
lambdabotI hope this
nrb23so, I have a function "next" that's () -> IO Foo
well, let's call it () -> IO (Maybe Foo)
and I want to turn it into [Foo]
lazily, if possible
bd_you mean IO [Foo]?
also there's no need for () in the argument, just IO Foo or IO (Maybe Foo)
in any case
nrb23sure, that work work
bd_if you want to build a lazy-list in IO
nrb23bd_: well, it's not actually (), but I decided to simplify things
bd_first, keep in mind this is Unsafe - you'll never know when things will be evaluated
and in theory they might be evaluated more than once
if this won't affect your program's behavior, take a look at unsafeInterleaveIO
in System.IO.Unsafe
nrb23hm.. this function returns something different every time
bd_what do you mean by that?
nrb23well, it's a ffi-wrapping function
and each time you call it, it returns the next item from C-land
bd_ah
well, you can use unsafeInterleaveIO for that, I think. getContents is implemented with it...
http://haskell.org/ghc/docs/latest/html/libraries/base/System-IO-Unsafe.html#v%3AunsafeInterleaveIO
lambdabothttp://tinyurl.com/2akd4n
roconnor:t ( . ) ( . )
lambdabotforall b c a a1. (a1 -> b -> c) -> a1 -> (a -> b) -> a -> c
bd_anyway, I must sleep now
@unpl (.).(.)
lambdabot(\ i b c f -> i (b c f))
nrb23thanks bd_
roconnor:t ( . ) . ( . )

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 

IrcArchive

NY Lost Funds