Skip to content

Conversation

@Bromeon
Copy link
Member

@Bromeon Bromeon commented Nov 1, 2025

Created a new "namespaced" type accessible from Array, which provides FP immutable operations on the array. Usage is deliberately more verbose, since the main reason for using those APIs is Godot parity (e.g. to match existing GDScript code), but they are slower and less type-safe than Rust Iterator alternatives.

Added APIs:

  • map
  • filter
  • reduce
  • all
  • any
  • find_custom
  • rfind_custom
  • bsearch_custom (moved from Array)

@Bromeon Bromeon added feature Adds functionality to the library c: core Core components labels Nov 1, 2025
@Bromeon Bromeon force-pushed the feature/array-functional-ops branch from 586316b to 55c922f Compare November 1, 2025 22:48
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1393

@Bromeon Bromeon force-pushed the feature/array-functional-ops branch from 55c922f to 3832736 Compare November 2, 2025 07:48
@Bromeon Bromeon enabled auto-merge November 2, 2025 07:48
@Bromeon Bromeon added this pull request to the merge queue Nov 2, 2025
Merged via the queue into master with commit 18f94ac Nov 2, 2025
20 checks passed
@Bromeon Bromeon deleted the feature/array-functional-ops branch November 2, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: core Core components feature Adds functionality to the library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants