Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ring Type Hints Library use the types inside the code

load "typehints.ring"

int     sum = sum(3,4)
string  msg = sayHello("Mahmoud")

see "Sum = " + sum + nl + msg + nl


int func sum(int x,int y) {
        return x+y ;
}

string func sayHello(string name) {
        return "Hello " + name ;
}
Source by ring-lang.github.io #
 
PREVIOUS NEXT
Tagged: #ring #Type #Hints #Library #types #code
ADD COMMENT
Topic
Name
5+4 =