one?

check if given number or collection size is one


Parameters

one? number :null :integer :floating :string :dictionary :block :range

Returns

  • :logical

Examples

copy
one? 5 ; => false one? 4-3 ; => true

copy
one? 1.0 ; => true one? 0.0 ; => false

copy
items: ["apple"] one? items ; => true items: [1 2 3] one? items ; => false

copy
one? ø ; => false

Related