defmodule Zundoko do def auto(), do: Stream.repeatedly( fn -> [ "ズン", "ドコ" ] |> Enum.random end ) |> run def run( input ) do match = [ "ズン", "ズン", "ズン", "ズン", "ドコ" ] eol = "キ・ヨ・シ!" input |> Stream.transform( [], fn( item, acc ) -> if List.last( acc ) == eol do { :halt, nil } else if Enum.count( acc ) < Enum.count( match ) do { [ item ], acc ++ [ item ] } else if acc == match, do: { [ eol ], acc ++
1. Bug fixes ExUnit [ExUnit.Assertions] Do not attempt to expand try/1 as it is a special form Mix [mix compile.app] Do not include applications with runtime: false as a runtime dependency for applications coming from Hex Checksums Precompiled.zip SHA1: 9bfe816aaedeb9c5d40095b4eb4f5cb07eb33c2b Precompiled.zip SHA512: f8b0ac405531d46f4b65f459970c4b82892f8db51028f172072748269a922db65cb58e36239cd26dc
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く