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

Need documentation with iterators #86

Open
Mullets-Gavin opened this issue Mar 6, 2021 · 0 comments
Open

Need documentation with iterators #86

Mullets-Gavin opened this issue Mar 6, 2021 · 0 comments

Comments

@Mullets-Gavin
Copy link

A guide/documentation should be created to explain how iteration works in Roblox-ts. This is super confusing as it currently is, since typescript will function differently by indexing at 0.

An example of confusing code would be how ipairs functions:
https://roblox-ts.com/playground/#code/JYWwDg9gTgLgBAbzgdWgawM5gIYGMCmcAvnAGZQQhwBEAAlAEYAeMGA9BvlAG7AEbUA3AChhuCADsM8ENjAY4AXhTosefADoA4vhgBhABbAANgBMo+CQAoAlCOGlocK+KnwA2sAmn8TADRwXtLYEgQAunAQpIE4wFAYVrLyNjaIwnAZcGBQXjCJchie3r5hqWxscDBGCsAKAO4UEgDmwkSijlDOrtJwRT7+gW4h4ZHRwLHx+cmpCOmZ2blThV79cAC0cACMpXDlldVwdaoA-K3tTi6SPX2+AUEww-gRUTHYcQlJGClpmVk5EnkVr4yhUqrVAgock0DDBWkA

It would be nice to see a return of a guide similar to this old iteration guide and talk about how Roblox-TS handles iteration in-depth (ie. mention that ipairs has raw access with indices).

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

No branches or pull requests

2 participants