Skip to content

Instantly share code, notes, and snippets.

@jumperson
jumperson / helloworld.md
Created Nov 11, 2020 — forked from m5151128/helloworld.md
Hello World反転問題
View helloworld.md

Hello World反転問題

ルール

  • 制限時間:10分
  • Web検索してもOK
  • 自分の一番得意な言語でやる
  • 実行はいつでも何回やってもOK

問題

@jumperson
jumperson / Reactor.kt
Created Feb 15, 2018
Reactor Android
View Reactor.kt
abstract class Reactor<in Action, Mutation, State, Navigation>(state: State) {
private val actionSubject: Subject<Action> = PublishSubject.create()
private val initialViewState = state
var currentViewState = initialViewState
private set
val stateStream: Observable<State>
init {
val mutationsStream = actionSubject.flatMap { mutate(it) }.replay().refCount()
View implicit.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RunRun
{
public class Jone
{
public static void Run()