Browse thread
[Caml-list] Suggestion: Pervasives.identity
- Martin Jambon
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Martin Jambon <martin_jambon@e...> |
| Subject: | [Caml-list] Suggestion: Pervasives.identity |
Hello, Is there a good why there is no predefined identity function? (fun x -> x) is sometimes less readable, and seems to be not compiled (yet?) as this black magic: external identity : 'a -> 'a : "%identity" In the same style, we already have Pervasives.ignore, so why not Pervasives.identity? Martin ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners