Last active
August 29, 2015 14:08
-
-
Save mertyildiran/fcd714a2b774a4b406df to your computer and use it in GitHub Desktop.
Ismail Each
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
def dizi_kopyala(dizi) | |
hedef = [] | |
dizi.each do |i| | |
if i < 4 | |
hedef << i | |
end | |
end | |
puts hedef | |
end | |
dizi_kopyala([1,2,3,4]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment