The colon is for implementing methods that pass self
as the first parameter. So x:bar(3,4)
should be the same as x.bar(x,3,4)
.
More Related Contents:
- Table name as a PostgreSQL function parameter
- How to explain callbacks in plain english? How are they different from calling one function from another function?
- Define table and column names as arguments in a plpgsql function?
- What is the difference between a “function” and a “procedure”?
- Computing the cross product of two vectors in Fortran 90
- Is there a way to use two ‘…’ statements in a function in R?
- What decides if a value is returned from a PowerShell function?
- Committing transactions while executing a postgreql Function
- How is the square root function implemented? [closed]
- How to alias a function name in Fortran
- How to profile methods in Scala?
- Whats the difference of functions and methods in Go?
- Return a list from the function using OUT parameter
- Define a recursive function within a function in Go
- “Identifier Expected” or “Invalid Prototype” when implementing a scripted constant in Inno Setup
- Exporting a function in shell
- D3 Key Function
- Two ways of defining functions in Scala. What is the difference?
- Kotlin: How can I create a “static” inheritable function?
- Haskell operator vs function precedence
- MsgBox “” vs MsgBox() in VBScript
- Scala Functional Literals with Implicits
- Does dart support operator overloading
- Return multiple values from a function in swift
- Why can’t ‘kotlin.Result’ be used as a return type?
- How to evaluate functions in GDB?
- MATLAB error: Undefined function or method X for input arguments of type ‘double’ [duplicate]
- Matlab ode45. How to change a parameter inside it while calling it?
- How do you strip the unit from any number in SASS?
- In R, what exactly is the problem with having variables with the same name as base R functions?