add Expr<ArrayType<T, Len>>: IntoIterator and Expr<Array<T>>: FromIterator<T> #20

Merged
programmerjake merged 1 commit from programmerjake/fayalite:expr-iterators into master 2025-03-03 02:10:57 +00:00

this makes it much nicer to use hdl arrays since you can just do:

for element in my_hdl_array {
    ...
}

rather than needing:

for i in 0..Expr::ty(my_hdl_array).len() {
    let element = my_hdl_array[i];
    ...
}
this makes it much nicer to use hdl arrays since you can just do: ```rust for element in my_hdl_array { ... } ``` rather than needing: ```rust for i in 0..Expr::ty(my_hdl_array).len() { let element = my_hdl_array[i]; ... } ```
programmerjake added 1 commit 2025-03-03 00:14:46 +00:00
add Expr<ArrayType<T, Len>>: IntoIterator and Expr<Array<T>>: FromIterator<T>
Some checks failed
/ deps (pull_request) Failing after 4s
/ test (pull_request) Has been skipped
25ddc837c1
programmerjake force-pushed expr-iterators from 25ddc837c1 to 50c86e18dc 2025-03-03 02:03:18 +00:00 Compare
programmerjake merged commit 50c86e18dc into master 2025-03-03 02:10:57 +00:00
programmerjake deleted branch expr-iterators 2025-03-03 02:10:57 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: libre-chip/fayalite#20
No description provided.