aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <mohammad.anwar@yahoo.com>2022-09-20 13:15:38 +0100
committerMohammad S Anwar <mohammad.anwar@yahoo.com>2022-09-20 13:15:38 +0100
commite66131f9e712f8da717bb0694dd5b67f06424666 (patch)
tree06f6ff5c47d70933c6c13aa090e57af1ffa4a47d
parent571cf518c1b32e22ac85538365dc5d6885ea99e3 (diff)
downloadperlweeklychallenge-club-e66131f9e712f8da717bb0694dd5b67f06424666.tar.gz
perlweeklychallenge-club-e66131f9e712f8da717bb0694dd5b67f06424666.tar.bz2
perlweeklychallenge-club-e66131f9e712f8da717bb0694dd5b67f06424666.zip
- Added guest contribution by Robert DiCicco.
-rw-r--r--challenge-183/robert-dicicco/julia/ch-1.jl43
1 files changed, 43 insertions, 0 deletions
diff --git a/challenge-183/robert-dicicco/julia/ch-1.jl b/challenge-183/robert-dicicco/julia/ch-1.jl
new file mode 100644
index 0000000000..246356bf54
--- /dev/null
+++ b/challenge-183/robert-dicicco/julia/ch-1.jl
@@ -0,0 +1,43 @@
+#!/usr/bin/env/julia
+
+# AUTHOR: Robert DiCicco
+# DATE: 2022-09-19
+# Challenge 183 Unique Array ( Julia )
+
+arr = ([1,2], [3,4], [5,6], [1,2]);
+
+#arr = [9,1], [3,7], [2,5], [2,5];
+
+display_list = ""
+
+count = 0
+
+println("Input: ",arr)
+
+print("Output: ( ")
+
+arr_sz =size(arr,1)
+
+for i in arr
+
+ if count == arr_sz - 2
+
+ print(i)
+
+ else
+
+ print(i,",")
+
+ end
+
+ global count += 1
+
+ if count == arr_sz - 1
+
+ break
+
+ end
+
+end
+
+println(" )")