Add shorthand function literals to janet.

These are similar to the function literals from Clojure
(also Fennel), and should make short functions for maps, filters, etc.
easier to write.
This commit is contained in:
Calvin Rose
2019-08-04 12:25:52 -05:00
parent 5c83ebd75d
commit 44e752d737
6 changed files with 122 additions and 23 deletions
+1 -2
View File
@@ -44,8 +44,7 @@ static int is_symbol_char_gen(uint8_t c) {
c == '>' ||
c == '@' ||
c == '^' ||
c == '_' ||
c == '|');
c == '_');
}
int main() {