red / REP

Red Enhancement Process
BSD 3-Clause "New" or "Revised" License
11 stars 4 forks source link

WISH: support issue as map key #63

Closed hiiamboris closed 2 years ago

hiiamboris commented 4 years ago

See :point_up: /help January 23, 2020 9:36 PM

TL;DR: make these work:

#( #issue 100 )
put #() #issue 100
select #() #issue
extend #() [#issue 100]

No default coercion from issue! to any-word! and back should be done (m/(#issue) <> m/issue).

I wouldn't mind if refinement! type was supported as well.

9214 commented 4 years ago

Granted by https://github.com/red/red/pull/4580. Edit: partially.

hiiamboris commented 4 years ago
>> m: #() ()
>> put m #abc 234
*** Script Error: put does not allow issue for its key argument
*** Where: put
*** Stack:  
9214 commented 4 years ago

Bloody hell.

hiiamboris commented 2 years ago

Works in Red 0.6.4 for Windows built 4-Apr-2022/15:09:55+03:00 commit #28dad01