Skip to content

【メモ】Subjectの読み/書きについて #1

@hisui

Description

@hisui
let intSubj = Subject(1)
let readerOp: Transaction<Int> = intSubj.value
let writerOp: Transaction<()> = readerOp.flatMap { intSubj.value = $0 * $0 }
writerOp.run()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions