p
Size: a a a
p
p
p
DS
DS
p
p
DS
function definitions are trees of expressions that each return a value, rather than a sequence of imperative statements which change the state of the program or world.
p
function definitions are trees of expressions that each return a value, rather than a sequence of imperative statements which change the state of the program or world.
DS
DS
DS
p
p
p
DS
newSTRef "hello" >>= (\ref -> readSTRef ref >>= (\x -> writeSTRef ref (x ++ "world") >> readSTRef ref ))
DS
p
newSTRef "hello" >>= (\ref -> readSTRef ref >>= (\x -> writeSTRef ref (x ++ "world") >> readSTRef ref ))
create_foo().and_then(|mut foo| (1..10).for_each(|i| do_some(&mut foo, i)))а так?)
DS
create_foo().and_then(|mut foo| (1..10).for_each(|i| do_some(&mut foo, i)))а так?)
DS
create_foo().and_then(|mut foo| (1..10).for_each(|i| do_some(&mut foo, i)))а так?)