Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 974679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:28:15+00:00 2026-05-16T03:28:15+00:00

FsUnit source code contains an unusual definition: let be = id FSI output: val

  • 0

FsUnit source code contains an unusual definition:

let be = id

FSI output:

val was : ('a -> 'a)

The semantics of the “id” is the parenthesized form of the following statement:

let be x = x

FSI output:

val be : 'a -> 'a

You can see the slight difference: the latter example replaces expression be true with true, while the first syntax would represent it as (true).

What puzzles me is that I can’t find any reference to “id” in F# language reference, neither it is described in a “Programming F#” book. Moreover, “id” is not a reserved keyword, I can define assign “id” to something else, and then I no longer can use it in a way that is shown in the first example. So I wonder if there are any F# documents that describe this literal and its semantics.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T03:28:16+00:00Added an answer on May 16, 2026 at 3:28 am

    Most of these built-in functions are defined in the FSharp.Core library, Microsoft.FSharp.Core.Operators module.

    They’re documented on MSDN. Here’s id: http://msdn.microsoft.com/en-gb/library/ee353607.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read in FsUnit that the following are valid method/classnames in F#: [<TestFixture>] type
We are using the wonderful FSUnit for our unit testing. This works fine, except
I can't seem to get the indentation right in my fsunit tests. I keep
So i wrote my first fsUnit test in Visual studio. It is just an
I copied this example from the FsUnit project page : open NUnit.Framework open FsUnit
Here is a working trivial test: module Tests open NUnit.Framework open FsUnit [<TestFixture>] type
I am looking specifically for frameworks that allow me to take advantage of unique
Ubuntu 11.04 64-bit [Tried on SuSE 32-bit, and got same error], I have gcc,
I am rather inexperienced C++ programmer, so this question is probably rather basic. I
I'm fiddling with a new F# project (of which I haven't made many), and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.