Skip to content

Instantly share code, notes, and snippets.

Ahmet Karalar akaralar

  • Istanbul, Turkey
Block or report user

Report or block akaralar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
akaralar / reverse.swift
Created Aug 22, 2019
View reverse.swift
var numbers = [1, 2, 3, 4, 5]
numbers.forEach { num in
print("num: \(num)")
print("numbers: \(numbers)")
if num == 2 {
numbers = numbers.reversed()
print("numbers: \(numbers)")
View aoc-day07.swift
import Foundation
let input = """
Step X must be finished before step C can begin.
Step C must be finished before step G can begin.
Step F must be finished before step G can begin.
Step U must be finished before step Y can begin.
Step O must be finished before step S can begin.
Step D must be finished before step N can begin.
Step M must be finished before step H can begin.
akaralar /
Created Oct 5, 2017 proof

Keybase proof

I hereby claim:

  • I am akaralar on github.
  • I am akaralar ( on keybase.
  • I have a public key ASDSU8BbxnG9RIOwq0y7uAUzfZt1W6pFpzFAlYt6fhosvgo

To claim this, I am signing this object:

View gist:4f244923dc294eea9817
var data1 = [1, 4, 7]
var data2 = [123, -2, 477, 3, 14, 6551]
* Write a recursive function which loops over the list adding the first element
* to all remaining elements
* until there is only 1 element remaining which is then returned
func doStuff(input: [Int]) -> Int {
View gist:11336111 do |s| = "PayPal-iOS-SDK"
s.version = "2.0.5"
s.summary = "Accept credit cards and PayPal in your iOS app."
s.description = " The PayPal iOS SDK provides a software library that makes it easy for an iOS developer to accept both credit cards and PayPal directly within their mobile app."
s.homepage = ""
s.license = { :type => 'Commercial', :file => '' } = 'Paypal'
s.source = { :git => "", :tag => "2.0.5" }
s.platform = :ios, '6.0'
You can’t perform that action at this time.