ios - custom NSExpression functions like sin(x) -


i know how add custom functions nsnumber nsexpression work it. use need declarate string "function(1, 'sin')". is way declarate "sin(1)"?

no, cannot extend syntax understood nsexpression(format:).

for advanced expression parsing , evaluating, use 3rd party solutions such ddmathparser.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

javascript - How to bind ViewModel Store to View? -

javascript - Solution fails to pass one test with large inputs? -