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
func fizzBuzz(_ number: Int) -> String { | |
let isDivisibleBy = { number % $0 == 0 } | |
switch (isDivisibleBy(3), isDivisibleBy(5)) { | |
case (true, false): return "Fizz" | |
case (false, true): return "Buzz" | |
case (true, true): return "Fizz Buzz" | |
case (false, false): return String(number) | |
} |
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
extension Int { | |
func isDivisible(by number: Int) -> Bool { | |
return (self % number == 0) | |
} | |
} | |
func fizzBuzz(_ number: Int) -> String { | |
switch (number.isDivisibleBy(3), number.isDivisibleBy(5)) { | |
case (true, false): return "Fizz" | |
case (false, true): return "Buzz" |
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 isDivisibleBy = { number % $0 == 0 } | |
switch (isDivisibleBy(3), isDivisibleBy(5)) { | |
case (true, false): return "Fizz" | |
case (false, true): return "Buzz" | |
case (true, true): return "Fizz Buzz" | |
case (false, false): return String(number) | |
} |
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
Albania | |
Andorra | |
Antigua and Barbuda | |
Argentina | |
Armenia | |
Australia | |
Austria | |
Bahamas | |
Bahrain | |
Bangladesh |
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
Albania | |
Andorra | |
Antigua and Barbuda | |
Argentina | |
Armenia | |
Australia | |
Austria | |
Bahamas | |
Bahrain | |
Bangladesh |
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
Armenia | |
Bolivia | |
Brazil | |
Brunei | |
Burundi | |
Cambodia | |
Cape Verde | |
Colombia | |
Comoros | |
Costa Rica |
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
<?php | |
/* | |
Plugin Name: My Awesome Plugin | |
Plugin URI: http://compendium.xyz | |
Description: Describe what your plugin does and why you created it. | |
Version: 1.0 | |
Author: Arthur Kho | |
Author URI: https://github.com/islandjoe | |
*/ |
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
<?php | |
/* | |
Plugin Name: Review Custom Post Type | |
Plugin URI: http://wanderlusting.me | |
Description: Describe what your plugin does and why you created it. | |
Version: 1.0 | |
Author: Arthur Kho | |
Author URI: https://github.com/islandjoe | |
*/ |
OlderNewer