From 607ebfbf3d8ceb27867ab6fe6df83c21d933c1a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=BB=E7=AB=AFCarl?= Date: Thu, 19 May 2016 23:24:35 +0800 Subject: [PATCH] Fix Demo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The output is of "concat example" is : Next(🍎) Next(🍐) Next(🍊) Next(🐱) Next(🐭) If people do not use 'concat()', the result is the same, the demo cannot show the effect of 'concat()', which is "waiting for each sequence to terminate successfully before emitting elements from the next sequence" so I add one line code for better demonstration. --- .../Contents.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Rx.playground/Pages/Mathematical_and_Aggregate_Operators.xcplaygroundpage/Contents.swift b/Rx.playground/Pages/Mathematical_and_Aggregate_Operators.xcplaygroundpage/Contents.swift index e3f8598f..398abac4 100644 --- a/Rx.playground/Pages/Mathematical_and_Aggregate_Operators.xcplaygroundpage/Contents.swift +++ b/Rx.playground/Pages/Mathematical_and_Aggregate_Operators.xcplaygroundpage/Contents.swift @@ -61,6 +61,7 @@ example("concat") { variable.value = subject2 + subject2.onNext("I would be ignored") subject2.onNext("🐱") subject1.onCompleted()