Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
动作期望返回值Action (),但forP返回Action[()]。它如何在一个动作中执行?
Action ()
forP
Action[()]
如果返回值无关紧要,则可以简单地忽略它:
void $ forP commands runCommand
否则它可以绑定到一个变量并在之后使用:
values <- forP commands runCommand return (fold values)