Extend existing classes #6

Closed
opened 2025-06-02 10:43:51 +03:00 by sergeych · 2 comments
Owner

The idea is:

fun List.average() {
   var s = 0.0
   for( x in this ) {
     s += x 
  }
  s / size
}

The idea is: ``` fun List.average() { var s = 0.0 for( x in this ) { s += x } s / size } ```
sergeych added a new dependency 2025-06-10 09:16:00 +03:00
Author
Owner

Should not be implemented before inheritance mechanics will be settled in #13

Should not be implemented before inheritance mechanics will be settled in #13
sergeych added this to the 0.7 milestone 2025-06-14 09:14:53 +03:00
sergeych removed a dependency 2025-07-07 15:05:17 +03:00
Author
Owner

inheritance mechanic is preserved with the current test implentation

inheritance mechanic is preserved with the current test implentation
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SergeychWorks/lyng#6