Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S sweet-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 62
    • Issues 62
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • sweet-js
  • sweet-core
  • Wiki
  • Example macros

Example macros · Changes

Page history
Link to macro to extend `for` loops authored Feb 03, 2014 by Ayose Cazorla's avatar Ayose Cazorla
Hide whitespace changes
Inline Side-by-side
Example-macros.md
View page @ a4468af9
...@@ -18,4 +18,5 @@ Note that these gists aren't necessarily kept up to date and might not work with ...@@ -18,4 +18,5 @@ Note that these gists aren't necessarily kept up to date and might not work with
* [cond (better switch)](https://gist.github.com/disnet/6024991) * [cond (better switch)](https://gist.github.com/disnet/6024991)
* [randomly disappearing code](https://gist.github.com/Nami-Doc/95e8334830aced6d1e52) * [randomly disappearing code](https://gist.github.com/Nami-Doc/95e8334830aced6d1e52)
* [shorthand function syntax, inspired by clojure's shorthand function macro](https://github.com/benjreinhart/lambda-jam) * [shorthand function syntax, inspired by clojure's shorthand function macro](https://github.com/benjreinhart/lambda-jam)
* [arrow functions](https://gist.github.com/btd/8663940) * [arrow functions](https://gist.github.com/btd/8663940)
\ No newline at end of file * [for loops with `for(x <- items)` and `for(x, i <- items)` syntax](https://gist.github.com/ayosec/8794795)
\ No newline at end of file
Clone repository
  • Example macros
  • FAQ
  • High level design overview
  • Home
  • Macro resources
  • Patterns
  • Syntax Case
  • case api
  • custom operators
  • design
  • expander design
  • modules
  • node loader
  • pattern_class
  • reader scratch
View All Pages