Clojure

'list*' returns not a list

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Trivial Trivial
  • Resolution: Unresolved
  • Affects Version/s: Release 1.4
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Patch:
    Code
  • Approval:
    Triaged

Description

Function 'list*' returns sequence, but not a list.
It is a bit confusing.

user=> (list? (list* 1 '(2 3)))
false

Approach: Change the doc string to say that it returns a seq, not a list.

Patch: list-star-docstring.diff

Activity

Stuart Halloway made changes -
Field Original Value New Value
Priority Major [ 3 ] Trivial [ 5 ]
Marek Srank made changes -
Attachment list-star-fix.diff [ 11792 ]
Andy Fingerhut made changes -
Patch Code and Test [ 10002 ]
Steve Miner made changes -
Description Function 'list?' returns sequence, but not a list.
It is a bit confusing.

{code}
user=> (list? (list* 1 '(2 3)))
false
{code}
Function 'list*' returns sequence, but not a list.
It is a bit confusing.

{code}
user=> (list? (list* 1 '(2 3)))
false
{code}
Andy Sheldon made changes -
Attachment list-star-docstring.diff [ 14270 ]
Alex Miller made changes -
Patch Code and Test [ 10002 ] Code [ 10001 ]
Approval Triaged [ 10120 ]
Description Function 'list*' returns sequence, but not a list.
It is a bit confusing.

{code}
user=> (list? (list* 1 '(2 3)))
false
{code}
Function 'list*' returns sequence, but not a list.
It is a bit confusing.

{code}
user=> (list? (list* 1 '(2 3)))
false
{code}

*Approach:* Change the doc string to say that it returns a seq, not a list.

*Patch:* list-star-docstring.diff
Labels ft
Alex Miller made changes -
Labels ft
Alex Miller made changes -
Labels ft

People

Vote (0)
Watch (4)

Dates

  • Created:
    Updated: