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 8895983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:55:32+00:00 2026-06-14T23:55:32+00:00

-export([consult/1, dump/2, first/1, for/3, is_prefix/2). I’m reading documentation and confused with syntax above. What’s

  • 0
-export([consult/1,
         dump/2, 
         first/1, 
         for/3,
         is_prefix/2).

I’m reading documentation and confused with syntax above. What’s the meaning of /1, /2, /3 in the list above?

  • 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-06-14T23:55:33+00:00Added an answer on June 14, 2026 at 11:55 pm

    /1, /2, /3 etc are referred to as the “Arity” of the function, Arity meaning the number of arguments accepted by that function.

    In Erlang, two functions of with the same name but with different arity are two different functions, and as such are each exported explicitly. To quote the Erlang documentation is says:

    A function is uniquely defined by the module name, function name, and arity.

    For example, if you have two functions:

    do_something() -> does_something().
    
    do_something(SomeArg) -> some_something_else(SomeArg).
    

    And at the top of your module, you had only

    -export([do_something/0]).
    

    Then only the do_something with zero arguments would be exported (that is, accessible from other modules in the system).

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

Sidebar

Related Questions

I am trying to export data in oracle 11g exp user/password file=dump.dmp tables =
How to export a matrix with the first row telling names of columns like
export PATH=${/home/mohit/}:<android-sdk-linux_86>/tools this is what i am using.. error:-- bash: PATH=${/home/mohit/}:: bad substitution this
I export an Excel document with DisplayTag. It saves as a .xls file to
to export some data i want to be able to generate an html output.
An export of the Eclipse preferences looks a lot like a Properties file. Is
I need to export data from several tables in SQL Server 2008 using SSMS.
I am trying to export an image from Flex application to svg. I saw
I'd like to export graphics from R (for example, histograms and ROC curves) in
My pdf export does a complete export of the page, imagine if some legends

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.