Created
July 29, 2014 22:22
-
-
Save flaviut/7aab80daa9e13fcac456 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
type FArray* {.unchecked.} [T] = array[0..0, T] | |
converter array2FArray[I, T](arr: array[I, T]): FArray[T] = | |
var arr = arr | |
return cast[FArray[T]](addr arr) | |
let x: FArray[int] = [1,2,3,4,5] | |
echo(x[5]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment