打字稿符号:Observable <array <example>&gt;与Observable <example []>不同

时间:2018-04-24 11:43:54

标签: javascript typescript rxjs

Observable<Array<Example>>

不同
Observable<Example[]>

用于打字稿?我使用RxJS发出一个可以发出Example对象数组的observable。

1 个答案:

答案 0 :(得分:0)

它是一样的。 Error in lines 2-2 Traceback (most recent call last): File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1013, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "", line 5, in SolovayStrassen File "/ext/sage/sage-8.1/local/lib/python2.7/site-packages/sage/arith/misc.py", line 1939, in power_mod while n&1 == 0: TypeError: unsupported operand type(s) for &: 'sage.rings.rational.Rational' and 'int' p = power_mod(a,(n-1)/2,n) #uses the power mod function 属于同一类型。