-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOC] add lists as part of a belief by constructing a literal with a tuple representing the list #11
Comments
That's correct. The embedding is as follows:
*) That means it's valid to create a |
About agentspeak.LinkedList, I saw that the constructor takes
results in
and not in
That is incredibly good to know! Thank you! :) |
Avoid LinkedList, if you can. It is only required to represent the For example:
The proper way to construct a LinkedList would be:
|
Oh okay, I see. |
A belief containing a list as an argument can be constructed by passing tuples representing the list to the Literal constructor. e.g
is equivalent to the literal within ASL
The text was updated successfully, but these errors were encountered: