Browse Search Popular Register Upload Rules User list Login:
Search:
Thyme Array Functions

Image:
screenshot of the scene

Author: s_noonan

Group: Default

Filesize: 81.51 kB

Date added: 2025-08-31

Rating: 5.6

Downloads: 673

Views: 365

Comments: 5

Ratings: 2

Times favored: 0

Made with: Algodoo v2.2.3

Tags:

Scene tag

This scene is a dynamic showcase of 33 custom array functions written in Thyme, each encapsulated in interactive boxes that cycle through five informative states: Description, Usage, Example, Results, and Code. It serves as both a reference and a hands-on learning tool for array manipulation in Thyme’s functional style.

Function Categories Include:

  Creation & Structure: Generate arrays with or without repetition (`_ra_randWithRep`, `_ra_randNoRep`), chunk arrays (`_ra_chunk`), flatten nested arrays (`_ra_flatten`), and zip/unzip multiple arrays (`_ra_zip`, `_ra_unzip`).
  Modification & Access: Insert, remove, set, append, and swap elements (`_ra_insert`, `_ra_pop`, `_ra_set`, `_ra_append`, `_ra_swap`).
  Search & Evaluation: Find values, check existence, count occurrences, and evaluate boolean conditions (`_ra_find`, `_ra_elemExists`, `_ra_count`, `_ra_anyIsTrue`, `_ra_allIsTrue`).
  Math & Aggregation: Compute sum, average, min/max, and combined min-max (`_ra_sum`, `_ra_ave`, `_ra_min`, `_ra_max`, `_ra_min_max`).
  Functional Programming Tools: Filter and transform arrays using custom logic (`_ra_filter`, `_ra_map`).
  Sorting & Shuffling: Sort arrays using bubble sort (`_ra_sort`) and randomize order (`_ra_shuffle`).
  Looping Constructs: Core recursive utilities like `_xFor`, `_xWhile`, and `_xFor2Step` power most of the logic behind these functions.

Each function is designed to mirror familiar array operations from languages like Python or JavaScript, but implemented in Thyme’s unique syntax and recursive paradigm. The scene is ideal for learners, tinkerers, and developers looking to understand or extend Thyme’s capabilities.
Please log in to rate this scene
edit
Similar scenes
Title: Call Up Array Value Example
Rating: 5
Filesize: 34.66 kB
Downloads: 1197
Comments: 0
Ratings: 1
Date added: 2023/03/05 19:08:41
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: thyme scripted pneumatic cylinder
Rating: 7
Filesize: 14.73 kB
Downloads: 956
Comments: 4
Ratings: 8
Date added: 2010/11/30 22:24:38
Made with: Phun
Rating: rated 7
download
Title: Strings functions examples (Thyme)
Rating: 5.625
Filesize: 23.24 kB
Downloads: 579
Comments: 1
Ratings: 2
Date added: 2010/02/27 22:14:52
Made with: Algodoo before v1.8.5
Rating: rated 5.6
download
Title: Country marble race 1
Rating: 5
Filesize: 1.19 MB
Downloads: 3590
Comments: 1
Ratings: 1
Date added: 2020/06/27 01:01:49
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: New onHitByLaser argument
Rating: 5
Filesize: 6.66 kB
Downloads: 612
Comments: 5
Ratings: 1
Date added: 2024/11/21 18:25:32
Made with: Algodoo v2.2.1
Rating: rated 5
download
Title: Strings Functions V2 (Thyme)
Rating: 5.5
Filesize: 2.22 kB
Downloads: 394
Comments: 1
Ratings: 2
Date added: 2010/04/15 19:41:47
Made with: Algodoo before v1.8.5
Rating: rated 5.5
download
Excellent work s_noonan! :tup: _o_ :tup:
Thanks.
Question: Is the function _ra_set(arr, n, value) intended only for local use or will it also work globally?


Update: OOPS, never mind. I just read your text that shows how it can be used globally using "scene.my". :blush:
Last edited at 2025/08/31 22:11:22 by Xray
nice
Thanks.