Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for each child:
- a := max(a, f(a, child))
- if cond:
- break
- return a
- (last (take-while cond-inverted (reductions #(max % (f % %2)) initial-a childs)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement