Skip to content

Instantly share code, notes, and snippets.

@joseoliv
Created June 13, 2019 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joseoliv/61bf660563d26cec10c5046ca5b5d231 to your computer and use it in GitHub Desktop.
Save joseoliv/61bf660563d26cec10c5046ca5b5d231 to your computer and use it in GitHub Desktop.
MyVector
package generic
object MyVector<T, V>
func init {
array = Array<T> new: @extract(V)
}
var Array<T> array
// nothing useful
func getArray -> Array<T> = array;
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment