Clojure

Add queue and queue? to clojure.core

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: Release 1.5
  • Fix Version/s: None
  • Component/s: None
  • Patch:
    Code and Test
  • Approval:
    Triaged

Description

Add queue function to create queues from collections and queue? predicate to check queueness.

Patch: clj-1048-add-queue-functions.diff

  1. clj-1048-add-queue-functions.diff
    05/Feb/14 6:53 PM
    5 kB
    John Jacobsen
  2. queue.patch
    26/Oct/12 9:16 PM
    6 kB
    Timothy Baldridge

Activity

Timothy Baldridge made changes -
Field Original Value New Value
Attachment queues.patch [ 11621 ]
Timothy Baldridge made changes -
Attachment queue.patch [ 11622 ]
Timothy Baldridge made changes -
Attachment 0001-make-PersistentQueue-ctor-public.patch [ 11527 ]
Timothy Baldridge made changes -
Attachment queues.patch [ 11621 ]
Timothy Baldridge made changes -
Attachment 0001-added-queue-queue-and-queue.patch [ 11526 ]
John Jacobsen made changes -
Attachment clj-1048-queue-takes-collections.diff [ 12018 ]
John Jacobsen made changes -
Description This patch adds functions for PersistentQueue. queue, queue? and queue* match the list functions of the same naming conventions. Patches include updates to tests. Original patch added functions for PersistentQueue. queue, queue? and queue* match the list functions of the same naming conventions. Patches include updates to tests.

In the updated patch, "queue" accepts a single collection argument as per Rich's suggestion, and does not provide a "queue*".
John Jacobsen made changes -
Attachment clj-1048-queue-takes-collections-1-6.diff [ 12761 ]
John Jacobsen made changes -
Attachment clj-1048-queue-takes-collections.diff [ 12018 ]
John Jacobsen made changes -
Comment [ This version applies cleanly to the current repo and all tests pass. ]
John Jacobsen made changes -
Summary Added queue, queue* and queue? to clojure.core Added queue and queue? to clojure.core
John Jacobsen made changes -
Summary Added queue and queue? to clojure.core Add queue and queue? to clojure.core
Alex Miller made changes -
Description Original patch added functions for PersistentQueue. queue, queue? and queue* match the list functions of the same naming conventions. Patches include updates to tests.

In the updated patch, "queue" accepts a single collection argument as per Rich's suggestion, and does not provide a "queue*".
Add {{queue}} function to create queues from collections and {{queue?}} predicate to check queueness.

*Patch:* clj-1048-queue-takes-collections-1-6.diff
Alex Miller made changes -
Approval Triaged [ 10120 ]
Priority Trivial [ 5 ] Minor [ 4 ]
John Jacobsen made changes -
Attachment clj-1048-add-queue-functions.diff [ 12764 ]
John Jacobsen made changes -
Attachment clj-1048-queue-takes-collections-1-6.diff [ 12761 ]
Alex Miller made changes -
Description Add {{queue}} function to create queues from collections and {{queue?}} predicate to check queueness.

*Patch:* clj-1048-queue-takes-collections-1-6.diff
Add {{queue}} function to create queues from collections and {{queue?}} predicate to check queueness.

*Patch:* clj-1048-add-queue-functions.diff

People

Vote (9)
Watch (4)

Dates

  • Created:
    Updated: