Skip to content

Commit d29f974

Browse files
author
Colin Leach
committed
moved solution to exemplar.jl
1 parent a9f67d1 commit d29f974

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
rank_range() = 1:8
2+
3+
file_range() = 'A':'H'
4+
5+
ranks() = collect(rank_range())
6+
7+
files() = collect(file_range())
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
function rank_range()
2+
end
13

2-
rank_range() = 1:8
4+
function file_range()
5+
end
36

4-
file_range() = 'A':'H'
7+
function ranks()
8+
end
59

6-
ranks() = collect(rank_range())
7-
8-
files() = collect(file_range())
10+
function files()
11+
end

0 commit comments

Comments
 (0)