Created
May 18, 2014 19:52
-
-
Save schmee/d419d35cbbbfd7fa21d2 to your computer and use it in GitHub Desktop.
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
let board = [Empty, ..9]; | |
let line = [0, 3, 6]; | |
let get = line.iter().map(|&i| board[i]); | |
for p in get { | |
println!("{:?}", p); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment