buzz-language / buzz

👨‍🚀 buzz, A small/lightweight statically typed scripting language
https://buzz-lang.dev
MIT License
1.16k stars 32 forks source link

`list.sort` #113

Closed giann closed 1 year ago

giann commented 1 year ago

Now that we have bz_call we can do this:

[4, 5, 1, 3, 2].sort(fun (int a, int b) -> a >b); | -> [1, 2, 3, 4, 5]