It returns the integer for which the half of input values is greater and the other half is smaller.
Input | Output |
---|---|
[1,2,3,4]
|
2
|
[1,12,9,4,4,26,7,35,1,2...
|
9
|
It emits null for empty streams.
Input | Output |
---|---|
[]
|
null
|
It behaves accordingly for floats.
Input | Output |
---|---|
[1.5,3.5,2.5]
|
2.5
|