Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standard library #1

Open
Wafelack opened this issue Jan 13, 2021 · 3 comments
Open

Standard library #1

Wafelack opened this issue Jan 13, 2021 · 3 comments

Comments

@Wafelack
Copy link
Owner

Here some functions for the standard library, sorted by type

Io

  • print: displays the arguments with a newline
  • puts: like print but without newline

str

  • str:cat: concatenates strings
  • substring: gets a substring from a string
  • split: Splits a string on a delimiter
  • to_number: converts the string to number

misc

  • pop: (string && list) returns the poped collection
  • push (string && list) returns the pushed collection
  • len : (string && list) returns the length

math

  • math:abs: |x|
  • math:inv: 1/x
  • math:opp: -x
  • math:floor: floors a number
  • math:pow: x^n
  • math:cos: cos n
  • math:acos: acos n
  • math:sin: sin n
  • math:asin: asin n
  • math:tan: tan n
  • math:atan: atan n
  • math:EULER: 1 + 1/1! + 1/2! + ... + 1/13!
  • math:PI: 3.141592653590793238462643
@Wafelack
Copy link
Owner Author

  • math:sqrt

@Wafelack
Copy link
Owner Author

  • range
  • foreach

@Wafelack
Copy link
Owner Author

  • @: index a collection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant