Control.ST pure type
问题 pure : (result : ty) -> STrans m ty (out_fn result) out_fn from http://docs.idris-lang.org/en/latest/st/state.html#strans-primitive-operations I'm not sure what (out_fn result) out_fn means. Is it about constraining out_fn to be a function of result ? Does it actually say anything about the input resource list? The given explanation seems to be "...provided that the current list of resources is correct when producing that value" but I'm not sure how to interpret it. 回答1: STrans : (m : Type ->