File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
forschungsarbeit-ip6-fortschrittliche-abstraktionen-im-lambda-kalkuel Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,16 +80,16 @@ obsExample = obsExample( removeListener )( listenerExample );
8080
8181` ` ` javascript
8282let listenerVariable; // undefined
83- const lisExample = newListener ( nVal => oVal => listenerVariable = nVal );
83+ const listenerExample = newListener ( nVal => oVal => listenerVariable = nVal );
8484
8585// create observable and add listener
8686let obsExample = Observable (42 )
87- (addListener)(lisExample );
87+ (addListener)(listenerExample );
8888
8989listenerVariable // 42 <- get the value from initialValue
9090
9191// set new value and update listeners
92- obsExample = obsExample (setValue)(11 )
92+ obsExample = obsExample (setValue)(11 );
9393
9494// receive the update
9595listenerVariable // 11
You can’t perform that action at this time.
0 commit comments