squeeze

reduce adjacent elements in given collection


Parameters

squeeze collection :string :literal :block

Returns

  • :string
  • :block
  • or  :nothing

Examples

copy
print squeeze [1 1 2 3 4 2 3 4 4 5 5 6 7] ; 1 2 3 4 2 3 4 5 6 7

copy
arr: [4 2 1 1 3 6 6] squeeze 'arr ; a: [4 2 1 3 6]

copy
print squeeze "hello world" ; helo world

Related