numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
18 stars 6 forks source link

added the methods str.first and str.last to access the first and last… #115

Closed diop7 closed 1 year ago

diop7 commented 1 year ago

… characters of a string str

SUMMARY

Implements necessary changes for #20

Reviewers: @numere-org/maintainers

IMPLEMENTATION

DOCUMENTATION


TESTS BY REVIEWERS

sMyName = "NumeRe*";
print "string <<" + sMyName + ">>";
sMyName.first == "N"
sMyName.last == "*"

sMyName = "";
print "string <<" + sMyName + ">>";
sMyName.first == ""
sMyName.last == ""