[ prog / sol / mona ]

prog


Monads,Async/Await : Algebraic Effects in C99

32 2021-01-14 20:16

>>31 that is trivial
#include "Util/void.h"
#define prefix2(a) (r detuple(a) )
#define rolls2(args...) ({double r=rdouble();\
condif(chainapply(prefix2,args));})
int main(){
rolls2((<0.3,print("a")),(>0.5,print("b")),(>-1.0,print("c")))
;}

69


VIP:

do not edit these