Extend existing classes #6

Open
opened 2025-06-02 10:43:51 +03:00 by sergeych · 0 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 } ```
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SergeychWorks/lyng#6
No description provided.