Created
June 13, 2019 22:47
-
-
Save joseoliv/61bf660563d26cec10c5046ca5b5d231 to your computer and use it in GitHub Desktop.
MyVector
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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