Skip to content
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

Random and Data Strucktures #19

Open
kyuunin opened this issue Nov 22, 2017 · 1 comment
Open

Random and Data Strucktures #19

kyuunin opened this issue Nov 22, 2017 · 1 comment

Comments

@kyuunin
Copy link

kyuunin commented Nov 22, 2017

I tried to write my Home Work for AI in Fetlang, but Operations like random Numbers and convenient access to Elements in Chains are missing. It would also great to have Data Strucktures like sets and maps (dict).

@Property404
Copy link
Collaborator

Property404 commented Nov 23, 2017

Hi - you can use C's rand() function if you write a new fetish, and do the same for random-access to chains.

Sets and Maps as separate types are very unlikely to be implemented.

if you can suggest a clean(syntax-wise) way to handle random access to chains, and follow up with a pull request, I'd be happy to accept. (Keep in mind that they're linked list, so it wouldn't really be random access, but O(n))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants