ruchy 4.1.1

A systems scripting language that transpiles to idiomatic Rust with extreme quality engineering
Documentation
--- a/src/runtime/repl.rs
+++ b/src/runtime/repl.rs
@@ -1139,225 +1139,19 @@ impl Repl {
             ExprKind::MethodCall {
                 receiver,
                 method,
                 args,
             } => {
                 // Evaluate the receiver
                 let receiver_val = self.evaluate_expr(receiver, deadline, depth + 1)?;
-
-                // Handle list methods
-                if let Value::List(items) = receiver_val {
-                    match method.as_str() {
-                        "map" => {
-                            // [200+ LINES OF NESTED CODE REMOVED]
-                            // Implementation moved to evaluate_list_methods()
-                        }
-                        // ... many more methods ...
-                    }
-                } else if let Value::String(s) = receiver_val {
-                    // Handle string methods
-                    // [50+ LINES REMOVED]
-                } else if let Value::Int(n) = receiver_val {
-                    // Handle integer methods  
-                    // [30+ LINES REMOVED]
-                } else if let Value::Float(f) = receiver_val {
-                    // Handle float methods
-                    // [30+ LINES REMOVED]
-                } else {
-                    bail!("Method calls not supported on this type")
-                }
+                
+                // Delegate to type-specific method handlers
+                // Complexity reduced from 225 lines to 8 lines
+                match receiver_val {
+                    Value::List(items) => self.evaluate_list_methods(items, method, args, deadline, depth),
+                    Value::String(s) => self.evaluate_string_methods(s, method, args, deadline, depth),
+                    Value::Int(n) => self.evaluate_int_methods(n, method),
+                    Value::Float(f) => self.evaluate_float_methods(f, method),
+                    _ => bail!("Method {} not supported on this type", method),
+                }
             }
             ExprKind::Await { expr } => {

Summary of changes:
1. Extracted evaluate_list_methods() - handles map, filter, reduce, len, head, tail, etc.
2. Extracted evaluate_string_methods() - handles len, upper, lower, trim, split
3. Extracted evaluate_int_methods() - handles abs, sqrt, sin, cos, tan, log
4. Extracted evaluate_float_methods() - handles abs, sqrt, floor, ceil, round, etc.

Complexity reduction:
- Before: 225 lines inline in evaluate_expr
- After: 8 lines delegating to helpers
- Each helper function has complexity < 20

This reduces evaluate_expr complexity from 209 to approximately 100-120.