Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ lein repl
- nREPL server started on port 64314 on host 127.0.0.1 - nrepl://127.0.0.1:64314
- REPL-y 0.3.5, nREPL 0.2.6
- Clojure 1.6.0
- Java HotSpot(TM) 64-Bit Server VM 1.8.0_40-b25
- Docs: (doc function-name-here)
- (find-doc "part-of-name-here")
- Source: (source function-name-here)
- Javadoc: (javadoc java-object-or-class-here)
- Exit: Control+D or (exit) or (quit)
- Results: Stored in vars *1, *2, *3, an exception in *e
- user=> (rename-keys {:a 1, :b 2} {:a :new-a, :b :new-b})
- CompilerException java.lang.RuntimeException: Unable to resolve symbol: rename-keys in this context, compiling:(NO_SOURCE_PATH:1:1)
- user=> (select-keys {:a 1, :b 2} [:a :b])
- {:b 2, :a 1}
- user=> (select-keys {:a 1, :b 2} [:a])
- {:a 1}
- user=>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement