Clojure

into-array should work with all primitive types

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.3
  • Component/s: None
  • Labels:
    None
  • Approval:
    Ok

Description

e.g.

(into-array Integer/TYPE [0])
(into-array Byte/TYPE [0])

which currently fail with an argument type mismatch.

Activity

Hide
Rich Hickey added a comment -

Until [1 2 3] is a vector of longs, that's too magical.

Show
Rich Hickey added a comment - Until [1 2 3] is a vector of longs, that's too magical.
Hide
Stuart Halloway added a comment -

Side question while working on this ticket: Should I create a separate ticket so that {{(into-array [1 2 3]}} returns an array of long instead of Long, or it that too magical?

Show
Stuart Halloway added a comment - Side question while working on this ticket: Should I create a separate ticket so that {{(into-array [1 2 3]}} returns an array of long instead of Long, or it that too magical?
Hide
Stuart Halloway added a comment -

Good task for pairing with Luke. Feel free to grab me and discuss approach.

Show
Stuart Halloway added a comment - Good task for pairing with Luke. Feel free to grab me and discuss approach.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: