# Swift Foundations

- [About this Textbook](https://ios-course.cornellappdev.com/resources/swift-foundations/about-this-textbook.md)
- [Documentation](https://ios-course.cornellappdev.com/resources/swift-foundations/documentation.md)
- [Constants and Variables](https://ios-course.cornellappdev.com/resources/swift-foundations/constants-and-variables.md)
- [Variable Properties](https://ios-course.cornellappdev.com/resources/swift-foundations/constants-and-variables/variable-properties.md)
- [Lazy and Static Variables](https://ios-course.cornellappdev.com/resources/swift-foundations/constants-and-variables/lazy-and-static-variables.md)
- [Functions](https://ios-course.cornellappdev.com/resources/swift-foundations/functions.md)
- [Ranges](https://ios-course.cornellappdev.com/resources/swift-foundations/ranges.md)
- [Arrays](https://ios-course.cornellappdev.com/resources/swift-foundations/arrays.md)
- [Basic Array Operations](https://ios-course.cornellappdev.com/resources/swift-foundations/arrays/basic-array-operations.md)
- [Iteration and Enumeration](https://ios-course.cornellappdev.com/resources/swift-foundations/arrays/iteration-and-enumeration.md)
- [Advanced Array Operations](https://ios-course.cornellappdev.com/resources/swift-foundations/arrays/advanced-array-operations.md)
- [Tuples](https://ios-course.cornellappdev.com/resources/swift-foundations/tuples.md)
- [Conditions and While Loops](https://ios-course.cornellappdev.com/resources/swift-foundations/conditions-and-while-loops.md)
- [For Loops](https://ios-course.cornellappdev.com/resources/swift-foundations/for-loops.md)
- [Enums and Switches](https://ios-course.cornellappdev.com/resources/swift-foundations/enums-and-switches.md)
- [Enums with Associated Values](https://ios-course.cornellappdev.com/resources/swift-foundations/enums-and-switches/enums-with-associated-values.md)
- [Indirect Enums](https://ios-course.cornellappdev.com/resources/swift-foundations/enums-and-switches/indirect-enums.md): Credits to the great wonderful amazing Daniel Vebman for introducing me to the topic
- [Classes and Structs](https://ios-course.cornellappdev.com/resources/swift-foundations/classes-and-structs.md)
- [Optionals](https://ios-course.cornellappdev.com/resources/swift-foundations/optionals.md)
- [Dictionaries](https://ios-course.cornellappdev.com/resources/swift-foundations/dictionaries.md)
- [Dictionary Implementation](https://ios-course.cornellappdev.com/resources/swift-foundations/dictionaries/dictionary-implementation.md)
- [Closures](https://ios-course.cornellappdev.com/resources/swift-foundations/closures.md)
- [Constraints](https://ios-course.cornellappdev.com/resources/swift-foundations/constraints.md)
- [Generics](https://ios-course.cornellappdev.com/resources/swift-foundations/generics.md)
- [Protocols](https://ios-course.cornellappdev.com/resources/swift-foundations/protocols.md)
- [Protocols With Associated Types](https://ios-course.cornellappdev.com/resources/swift-foundations/protocols/protocols-with-associated-types.md)
- [Casting](https://ios-course.cornellappdev.com/resources/swift-foundations/casting.md)
- [Errors](https://ios-course.cornellappdev.com/resources/swift-foundations/errors.md)
- [Networking](https://ios-course.cornellappdev.com/resources/swift-foundations/networking.md)
- [Result](https://ios-course.cornellappdev.com/resources/swift-foundations/networking/result.md)
- [Inout](https://ios-course.cornellappdev.com/resources/swift-foundations/inout.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ios-course.cornellappdev.com/resources/swift-foundations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
