1265 Commits

Author SHA1 Message Date
BurdetteLamar
a552e04d81 [DOC] Related for Array#assoc 2024-09-10 14:00:54 -04:00
BurdetteLamar
b420b094d9 [DOC] Related for Array#push 2024-09-10 14:00:28 -04:00
Burdette Lamar
2b1147f1de
[DOC] Rationalize aliases in "What's Here" (#11516) 2024-09-09 15:24:33 -04:00
Étienne Barrié
a99707cd9c Optimized instruction for Array#freeze
If an Array which is empty or only using literals is frozen, we detect
this as a peephole optimization and change the instructions to be
`opt_ary_freeze`.

[Feature #20684]

Co-authored-by: Jean Boussier <byroot@ruby-lang.org>
2024-09-05 12:46:02 +02:00
Burdette Lamar
2d944dde70
[DOC] Related for Array#[] (#11487) 2024-08-30 22:23:03 -04:00
Burdette Lamar
b1c569c193
[DOC] Related for Array#all? and Array#any? (#11495) 2024-08-29 16:31:26 -04:00
BurdetteLamar
a04dd0bf5e [DOC] Related for Array#[]= 2024-08-29 10:44:29 -04:00
Burdette Lamar
74888846e5
[DOC] Relateds for combo methods (#11483) 2024-08-29 10:43:54 -04:00
Burdette Lamar
dba9601e0f
[DOC] Array comparing doc (#11486) 2024-08-28 17:17:21 -04:00
BurdetteLamar
ec88979a06 Related for Array#<< 2024-08-28 16:51:33 -04:00
BurdetteLamar
acafb92464 [DOC] Remove Array#abbrev 2024-08-28 15:05:52 -04:00
BurdetteLamar
a7cec438a1 [DOC] More xrefs for array creation 2024-08-28 15:05:04 -04:00
BurdetteLamar
91c6c2bdb5 Related methods for Array#delete 2024-08-28 10:43:37 -04:00
BurdetteLamar
8f700db4ed [DOC] Tweaks for Array#delete_if 2024-08-27 13:01:42 -04:00
Burdette Lamar
0228cf74e3
[DOC] Tweaks for Array#cycle (#11459) 2024-08-27 12:59:31 -04:00
Peter Zhu
2459e79b80 Assume that shared array is not embedded
An array cannot be shared and embedded at the same time, so we can assume
that a shared array is not embedded.
2024-08-27 09:58:38 -04:00
BurdetteLamar
51aadefb4d [DOC] Tweaks to Array#delete_at 2024-08-26 13:21:21 -04:00
BurdetteLamar
efa4ec0f98 [DOC] Tweaks to Array#delete 2024-08-26 11:20:22 -04:00
Burdette Lamar
76e0ea28ea
[DOC] Tweaks to Array#combination (#11440) 2024-08-24 21:22:33 -04:00
BurdetteLamar
fd0263d7ef [DOC] Tweaks for Array#concat 2024-08-24 11:51:28 -04:00
BurdetteLamar
bd19d3d163 [DOC] Tweaks for Array#count doc 2024-08-24 11:49:58 -04:00
BurdetteLamar
e962c9c4c3 [DOC] Tweaks to Array#compact! 2024-08-24 11:45:01 -04:00
BurdetteLamar
418e85b120 [DOC] Tweaks for Array#compact 2024-08-24 11:44:29 -04:00
Burdette Lamar
784ccd0115
[DOC] Tweaks for Array#collect! (#11434) 2024-08-22 20:59:59 -04:00
BurdetteLamar
53e3795379 [DOC] Tweaks to Array#bsearch_index 2024-08-21 12:07:28 -04:00
BurdetteLamar
65b3bcede3 [DOC] Tweaks for Array#collect 2024-08-21 11:59:20 -04:00
BurdetteLamar
ee6c7ab0cf [DOC] Tweaks for Array#clear 2024-08-21 11:56:35 -04:00
BurdetteLamar
124f1754df [DOC] Tweaks for Array#bsearch 2024-08-21 11:42:20 -04:00
Burdette Lamar
77ac853c15
[DOC] Tweaks to Array#assoc (#11384) 2024-08-16 16:11:55 -04:00
BurdetteLamar
33bffde923 [DOC] Tweaks for Array#at 2024-08-15 12:52:09 -04:00
BurdetteLamar
d2361ba156 [DOC] Tweaks for Array#push 2024-08-15 12:49:46 -04:00
BurdetteLamar
edda29a117 [DOC] Fix Related for Array#all? 2024-08-15 12:48:27 -04:00
BurdetteLamar
1f994683b6 [DOC] Tweaks for Array#any? 2024-08-15 12:46:18 -04:00
Burdette Lamar
85f99b3828
[DOC] Tweaks to Array#all? (#11365) 2024-08-14 13:47:28 -04:00
Jean Boussier
6ee9a08d32 rb_setup_fake_ary: use precomputed flags
Setting up the fake array is a bit more expensive than would be
expected because `rb_ary_freeze` does a lot of checks and lookup
a shape transition.

If we assume fake arrays will always be frozen, we can precompute
the flags state and just assign it.
2024-08-10 10:09:14 +02:00
Burdette Lamar
ec5436bc3a
[DOC] Tweaks for Array#[]= (#11329) 2024-08-08 16:09:32 -04:00
BurdetteLamar
b9a9564c1f [DOC] Tweaks for Array#[] 2024-08-08 16:08:15 -04:00
BurdetteLamar
d657205c58 [DOC] Tweaks for Array#[] 2024-08-08 16:08:15 -04:00
BurdetteLamar
6fee51069c [DOC] Tweaks for Array#== 2024-08-08 16:05:42 -04:00
Burdette Lamar
3719b3d74d
[DOC] Tweaks to Array#- (#11303) 2024-08-07 15:59:57 -04:00
Burdette Lamar
2a31410ebe
[DOC] Tweaks to Array#+ (#11302) 2024-08-07 15:59:01 -04:00
BurdetteLamar
fa3d9fdaed [DOC] Tweaks to Array#<=> 2024-08-06 15:51:31 -04:00
BurdetteLamar
3471437630 [DOC] Tweaks for Array#<< 2024-08-06 15:45:45 -04:00
BurdetteLamar
a793b5376c [DOC] Tweaks to Array#* 2024-08-06 15:38:29 -04:00
BurdetteLamar
66181fdda5 [DOC] Tweak to Array#& 2024-08-06 15:37:51 -04:00
BurdetteLamar
8aeca5ce40 Tweaks to Array::try_convert 2024-08-06 15:37:23 -04:00
BurdetteLamar
be959c040e [DOC] Tweak for Array::[] 2024-08-06 14:39:16 -04:00
Jeremy Evans
cc81437260 Rewrite Array.new documentation
Use plain paragraphs instead of a nested unordered list.

Remove some examples, including examples that produce warnings in
verbose mode or raise exceptions.

Explicitly document the common pitfall of using an expression as a
default value instead of using a block.
2024-07-31 13:04:42 -07:00
Burdette Lamar
d2b8fd0f37
[DOC] Tweaks to Array.try_convert (#11260) 2024-07-30 16:31:33 -04:00
Burdette Lamar
91bb6afa75
[DOC] Tweaks for Array.new (#11259) 2024-07-30 10:09:06 -04:00