GLaDOS
  • Home
  • 🌴Introduction
    • Installation
    • Basic Code example
    • Syntax Overview
  • 🤖Developpers
    • Parsing
    • Verbose Mode
  • ✨Features
    • Types
    • Operators
    • Lists
    • Includes
    • Syntactic Sugar
    • Loops
    • Conditions
    • Internal Functions
    • Recursivity
    • Prototypes
    • Error handling
    • Comments
    • Scopes
  • 📚Libraries
    • Mathematics
Powered by GitBook
On this page
  • Use Internal Functions
  • List
  • Exemples:

Was this helpful?

Edit on GitHub
  1. Features

Internal Functions

Use Internal Functions

List

  • len(<list>) ==> Return the number of element in the list given in argument

  • intToFloat(i: Int) ==> Convert the int given in argument into a float

  • floatToInt(f: Float) ==> Convert the float given in argument into an int

  • stringToInt(s: String) ==> Convert the string given in argument into an int if one is found

  • intToString(i: Int) ==> Convert the int given in argument into a string

  • intToBool(i: Int) ==> Convert the int given in argument into a boolean

  • floatToString(f: Float) ==> Convert the float given in argument into a string

Exemples:

len([1,2,3,4,5])
=> 5
len([])
=> 0
intToFloat(42)
=> 42.0
stringToInt("42")
=> 42
stringToInt("42")
=> 42
intToString(42)
=> "42"
intToBool(42)
=> true
intToBool(0)
=> false
floatToString(42.6)
=> "42.6"

PreviousConditionsNextRecursivity

Last updated 1 year ago

Was this helpful?

✨