Skip to content

Instantly share code, notes, and snippets.

jumperson /
Created November 11, 2020 02:26 — forked from m5151128/
Hello World反転問題
jumperson / Reactor.kt
Created February 15, 2018 01:52
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()