From b1d90eab3024a3ecf7162db1ae07364ba48a1c00 Mon Sep 17 00:00:00 2001 From: Artem Darius Weber Date: Mon, 6 Jan 2025 12:56:43 +0300 Subject: [PATCH] docs: add comments for clarity in indices_sorted_by_descending_values method --- lab3_task1_funcation_block_arg/main.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lab3_task1_funcation_block_arg/main.rb b/lab3_task1_funcation_block_arg/main.rb index 0f80877..b08bb5b 100644 --- a/lab3_task1_funcation_block_arg/main.rb +++ b/lab3_task1_funcation_block_arg/main.rb @@ -1,4 +1,7 @@ +# sort by and sort разница +# enumurable isn't Module, it's Mixture. What is this? + def indices_sorted_by_descending_values(array) array.each_with_index.to_a .sort_by { |(element, index)| -element }