Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
package permutations | |
func merge(ins []rune, c rune) (result []string) { | |
for i := 0; i <= len(ins); i++ { | |
result = append(result, string(ins[:i])+string(c)+string(ins[i:])) | |
} | |
return | |
} | |
func permutations(input string) []string { |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
interface Subject | |
interface Verb | |
infix fun Subject.can(what: Verb): Verb = what | |
infix fun <T> Subject.seems(what: T) = what | |
infix fun <T> Any.with(withWhat: T) = withWhat | |
infix fun <T> Any.odd(oddWhat: T) = oddWhat | |
infix fun <T> Any.of(ofWhat: T) = ofWhat | |
infix fun <T> Any.any(what: T) = what |