Skip to content

Xcalc: Utility Functions

Read Stanton edited this page Dec 23, 2020 · 12 revisions

Utility Functions

str_contains(str, find)

  • String contains function

  • Type: Function

  • Determines whether str contains substring find

str_list(str)

  • Converts str to a list

  • Type: Function

  • Returns str as a list

ls_str(list)

  • Converts list to a string

  • Type: Function

ls_contains(list, value)

  • Returns the index of val in list; 0 otherwise

  • Type: Function

str_char_at(str, i)

  • Type: Function

  • Returns the char (as string) at i in str

parse_fn(function)

  • Type: Program

  • Stores function into f(x)

Clone this wiki locally