Skip to content

Array wrappers #36

@SamTebbs33

Description

@SamTebbs33

Functions called on arrays should be wrapped to functions in the ash Array class.

So the following code

var array = new [int, 10]
var reversed = array.reverse()
var sorted = array.sort()

Would be converted into

var array = new [int, 10]
var reversed = Array.reverse(array)
var sorted = Array.sort(array)

This requires the implementation of generics (#41), since the Array functions would be generic methods.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions