Add optional not-found argument when invoking vectors or sets as functions

Description

Maps, keywords, and symbols when used as operators allow optional second arguments for 'default-not-found' values is if to 'get'.

However sets don't support this behavior (though they do with 'get') and vectors don't allow the optional default-not-found in their pseudo 'nth' semantics.

Environment

None

Activity

Show:
Pepijn de Vos
November 12, 2014, 7:31 PM

I fixed the problem with Dirk at the Amsterdam Clojurians Hackathon.

Bozhidar Batsov
November 12, 2014, 9:15 PM

Guess you can add a couple of unit tests as well.

Dirk Geurs
December 30, 2014, 3:51 PM

I have added some tests for the changes made earlier.

Aaron Brooks
December 13, 2017, 11:58 PM

Is there something that is needed for these patches to be applied? I run into this semi-regularly.

Alex Miller
December 14, 2017, 3:40 AM

Sorry, has just never been looked at afaik. Votes help raise visibility.

Assignee

Unassigned

Reporter

import

Labels

None

Approval

Triaged

Patch

Code and Test

Affects versions

Priority

Minor