Database.UInt16
Database
16-bit unsigned integer column type.
Reducers
Types
UInt16
type UInt16 = UInt1616-bit unsigned integer column type.
Examples
type alias Row = { score : UInt16 }
access rows token
|> reduce (Database.UInt16.sum .score)Values
sum
sum : (row -> UInt16) -> Reducer row IntXCompute the sum of the relevant rows.
Examples
access rows token
|> reduce (Database.UInt16.sum .score)ands
ands : (row -> UInt16) -> Reducer row UInt16Compute the bitwise AND over the relevant rows.
Examples
access rows token
|> reduce (Database.UInt16.ands .flags)ors
ors : (row -> UInt16) -> Reducer row UInt16Compute the bitwise OR over the relevant rows.
Examples
access rows token
|> reduce (Database.UInt16.ors .flags)xors
xors : (row -> UInt16) -> Reducer row UInt16Compute the bitwise XOR over the relevant rows. Useful as a checksum for an unordered set of values.
Examples
access rows token
|> reduce (Database.UInt16.xors .flags)