mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-19 01:18:40 +03:00
new example
This commit is contained in:
parent
3fc26dcf06
commit
fcf40cf153
@ -123,9 +123,8 @@ string say_what(string text) {
|
||||
string _result_0 = string_copy(text);
|
||||
string manage_me = _result_0;
|
||||
int _result_1 = strlen(text);
|
||||
bool _expr_0 = _result_1 < 10;
|
||||
string _if_result_0;
|
||||
if(_expr_0) {
|
||||
if(_result_1 < 10) {
|
||||
string _result_2 = string_copy("Too short");
|
||||
free(manage_me);
|
||||
_if_result_0 = _result_2;
|
||||
@ -139,7 +138,6 @@ string say_what(string text) {
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
The most important thing in Carp is to work with arrays of data. Here's an example of how that looks:
|
||||
|
||||
```clojure
|
||||
|
Loading…
Reference in New Issue
Block a user