2020-06-29から1日間の記事一覧

windows(wsl) + swiftせっとあっぷ

インストールしとく WSL(Windows Subsystem for Linux) ubuntu sudo apt-get install clang libicu-dev 何か失敗したんで、 sudo apt-get update アップデートしてから再実行でいけた swiftおとして展開 ほかバージョン: https://swift.org/download/ ぱす…

import scalaz.syntax.std.string._ ... val l: String = ... val v = l.parseLong // Validation[scala.NumberFormatException, Long] fold v.fold(f, s) ... /** Catamorphism. Run the first given function if failure, otherwise, the second given fun…

slick gropBy をめもる

/** Partition this query into a query of pairs of a key and a nested query * containing the elements for the key, according to some discriminator * function. */ def groupBy[K, T, G, P](f: E => K)(implicit kshape: Shape[_