【中文版】

Introduction

MFP language introduction

MFP functions

all functions

integer operation

logic functions

statistic and stochastic

trigononmetric functions

exponential functions

complex number

system functions

array or matrix

graphic functions

expression and calculus

string functions

hyperbolic trigononmetric

sorting functions

polynomial

signal processing

file operation

time and date

graphic display

multimedia functions

data structure

data interchange format

platform and hardware

parallel computing

RTC multimedia

reflection

MFP compiling

others

deploy user functions

call MFP in your app

build Android APK

game programming

chart plotting

MFP math analysis

MFP file procession

number string and array

time date and system

Introduction of SCP

Scientific Calculator Plus Help : data structure functions

Function name Function info
append_elem_to_ablist

::mfp::data_struct::array_based::append_elem_to_ablist(2) :

append_elem_to_ablist(array_based_list, ref_of_elem) appends a reference of value ref_of_elem at idx to an array based list array_based_list. It returns updated array based list. The parameter array_based_list shares elements with returned value.

concat_ablists

::mfp::data_struct::array_based::concat_ablists(2) :

concat_ablists(list1, list2) concatenates array based list2 to array_based list1 and returns merged array based list. The parameters list1 and list2 shares elements with returned value.

create_abdict

::mfp::data_struct::array_based::create_abdict(0) :

create_abdict() creates an empty array based dictionary.

get_elem_from_ablist

::mfp::data_struct::array_based::get_elem_from_ablist(2) :

get_elem_from_ablist(array_based_list, idx) returns a reference of the value at idx from an array based list array_based_list. If the idx is invalid, an exception is thrown.

get_value_from_abdict

::mfp::data_struct::array_based::get_value_from_abdict(2) :

get_value_from_abdict(array_based_dictionary, key) returns a reference to string based key's value from array_based_dictionary. If the key doesn't exist, it throws an exception.

insert_elem_into_ablist

::mfp::data_struct::array_based::insert_elem_into_ablist(3) :

insert_elem_into_ablist(array_based_list, idx, ref_of_elem) inserts a reference of value ref_of_elem before idx of array based list array_based_list. It returns updated array list. The parameter array_based_list shares elements with returned value. If idx is not valid, an exception will throw.

remove_elem_from_ablist

::mfp::data_struct::array_based::remove_elem_from_ablist(2) :

remove_elem_from_ablist(array_based_list, idx) removes the idxth element from an array based list array_based_list. It returns updated array list. The parameter array_based_list shares elements with returned value. If idx is not valid, an exception will throw.

set_elem_in_ablist

::mfp::data_struct::array_based::set_elem_in_ablist(3) :

set_elem_in_ablist(array_based_list, idx, ref_of_elem) set a reference of value ref_of_elem at idx for an array based list array_based_list. Note that if the idx is invalid, an exception is thrown.

set_value_in_abdict

::mfp::data_struct::array_based::set_value_in_abdict(3) :

set_value_in_abdict(array_based_dictionary, key, value) sets reference of the value to key into array_based_dictionary and returns the updated array_based_dictionary. If the key doesn't exist, it will be created. Note that key must be a string while value can be any data type.