Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tiny feature wish: Map.singleton #3225

Closed
vicuna opened this issue Feb 26, 2002 · 1 comment
Closed

tiny feature wish: Map.singleton #3225

vicuna opened this issue Feb 26, 2002 · 1 comment
Assignees

Comments

@vicuna
Copy link

vicuna commented Feb 26, 2002

Original bug ID: 931
Reporter: administrator
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2012-03-24T14:01:48Z)
Resolution: fixed
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Related to: #2748

Bug description

Hello,

for regularity it would be nice if the Map-module also contained a
"singleton"-function as is the case in module "Set":

val singleton: key -> 'a -> 'a t

let singleton x data = Node(Empty, x, data, Empty, 1)

Thanks!

Best regards,
Markus

--
Markus Mottl markus@oefai.at
Austrian Research Institute
for Artificial Intelligence http://www.oefai.at/~markus

@vicuna
Copy link
Author

vicuna commented May 25, 2010

Comment author: @alainfrisch

Wish granted (rev 10468).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants