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
http://support.apple.com/kb/ht1573?viewlocale=de_DE | |
http://support.apple.com/kb/ht1379?viewlocale=de_DE | |
http://support.apple.com/kb/ht3964?viewlocale=de_DE |
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 recursiveAdder(list:[Int]) -> Int { | |
switch list.count { | |
case 0: | |
return 0 | |
case 1: | |
return list.first! | |
case 2: |
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
import java.util.function.BiFunction; | |
import java.util.function.Function; | |
public class Currying { | |
// A,B -> C | |
// A -> B -> C | |
public static BiFunction<Integer, Integer, Integer> add = (a, b) -> a + b; |
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
======= Library/Logs/Homebrew/netpbm/02.make : ======= | |
/private/tmp/netpbm-chao/netpbm-10.35.77/Makefile.common:551: Makefile.depend: No such file or directory | |
make: libpng-config: Command not found | |
cat /dev/null >Makefile.depend | |
make: libpng-config: Command not found | |
/usr/bin/make -C /private/tmp/netpbm-chao/netpbm-10.35.77/buildtools/ -f /private/tmp/netpbm-chao/netpbm-10.35.77/buildtools/Makefile \ | |
SRCDIR=/private/tmp/netpbm-chao/netpbm-10.35.77 BUILDDIR=/private/tmp/netpbm-chao/netpbm-10.35.77 typegen | |
/private/tmp/netpbm-chao/netpbm-10.35.77/Makefile.common:551: Makefile.depend: No such file or directory | |
cat /dev/null >Makefile.depend |
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
fun main(args: Array<String>) { | |
// Starte mit "rats live on arona no evil star" | |
val sentence = "rats live on arona no evil star" | |
// 1. change all letters with their counterparts in the alphabet | |
val alphabetCounterparts: String = sentence.split(' ').map { word -> word.map { ch -> (122 - (ch.toInt() - 97)).toChar().toLowerCase() }.joinToString("") }.joinToString(" ") | |
// 2. convert all letters to their numeric value in the alphabet (a = 1) | |
val lettersToNumericValues:List<List<Int>> = alphabetCounterparts.split(' ').map { word -> word.map { ch -> ch.toInt() - 96 } } |