Paths Actions States – Design of Computer Programs


Here’s a quick exercise. Why don’t we just define two functions– path_states, which takes a path and returns a list of the states, and path_actions, which takes a path and returns a list of the actions. The path is interleaved–it contains both–and we want to pull just the states or just the actions.

Leave a Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright © 2019 Geted Tabs Online. All rights reserved.