gpt4 book ai didi

Ocaml lwt 符号

转载 作者:行者123 更新时间:2023-12-03 05:40:15 29 4
gpt4 key购买 nike

有关 Ocaml Lwt 中该符号含义的任何建议:

>>=

最佳答案

参见 API manual :

val bind : 'a t -> ('a -> 'b t) -> 'b t

bind t f is a thread which first waits for the thread t to terminate and then, if the thread succeeds, behaves as the application of function f to the return value of t. If the thread t fails, bind t f also fails, with the same exception.

t >>= f is an alternative notation for bind t f.

关于Ocaml lwt 符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14057612/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com