Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing functions #2

Open
12 of 18 tasks
Hartrik opened this issue Oct 7, 2018 · 0 comments
Open
12 of 18 tasks

Missing functions #2

Hartrik opened this issue Oct 7, 2018 · 0 comments

Comments

@Hartrik
Copy link
Member

Hartrik commented Oct 7, 2018

  • Important
    • fn - e.g. (fn [x] (* x x)
    • def
    • defn - e.g. (defn pow [x] (* x x)
    • let - e.g. (let [a 1 b 2] (+ a b)) >> 3
    • cond (switch alternative) - e.g. (cond (< n 0) "negative" (> n 0) "positive" "zero"))
  • Lower priority
    • Some of high-order functions: apply, map, reduce...
    • Working with exceptions: throw, try-catch-finally
    • Some kind of for-each (on collection)
    • load - evaluates script and returns last value or nil
    • Java interop
      • class
      • instance of
      • Java method call
      • Java static method call
      • Java constructor call
      • as - e.g. (as @java.lang.Float 20) (in Groovy: 20 as java.lang.Float)
      • Function is Groovy's Closure (or at least Runnable & Callable...)
      • Object construction (like Groovy's as keyword; depends on previous point)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant