Uploaded image for project: 'Clojure'
  1. CLJ-2464

peek does not support transient vectors

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: Release 1.10
    • Fix versions: None
    • Labels:
    • Approval:
      Triaged

      Description

      Appears to be an oversight, given that peek is a read operation.

      Input:

      (peek (transient [:a :b :c]))
      

      Expected outcome:

      :c
      

      Actual outcome:

      Unhandled java.lang.ClassCastException
      clojure.lang.PersistentVector$TransientVector cannot be cast to clojure.lang.IPersistentStack
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alex+import import
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: