tchncs
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
apoiselM to OCamlEnglish · 7 months ago

Learning OCaml: Having Fun with the Fun Module

batsov.com

external-link
message-square
0
link
fedilink
9
external-link

Learning OCaml: Having Fun with the Fun Module

batsov.com

apoiselM to OCamlEnglish · 7 months ago
message-square
0
link
fedilink
When I started to play with OCaml I was kind of surprised that there was no id (identity) function that was available out-of-box (in Stdlib module, that’s auto-opened). A quick search lead me to the Fun module, which is part of the standard library and is nested under Stdlib. It was introduced in OCaml 4.08, alongside other modules such as Int, Result and Option.1 It was part of some broader efforts to slim down Stdlib and move in the direction of a more modular standard library. ↩
alert-triangle
You must log in or # to comment.

OCaml

ocaml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !ocaml@discuss.tchncs.de

An industrial-strength functional programming language with an emphasis on expressiveness and safety. Website: www.ocaml.org

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 4 users / day
  • 4 users / week
  • 9 users / month
  • 27 users / 6 months
  • 46 local subscribers
  • 355 subscribers
  • 259 Posts
  • 19 Comments
  • Modlog
  • mods:
  • apoisel
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org