(->data res)accesses the data held by the result
(->data 1) => 1
(->data (result {:status :warn :data [1 2 3 4]})) => [1 2 3 4]
accesses the data held by the result
(->data 1) => 1
(->data (result {:status :warn :data [1 2 3 4]}))
=> [1 2 3 4](->result key data)converts data into a result
(->result :hello [1 2 3]) ;;#result.return{:data [1 2 3], :key :hello} => hara.core.base.result.Result
converts data into a result
(->result :hello [1 2 3])
;;#result.return{:data [1 2 3], :key :hello}
=> hara.core.base.result.Result(result m)creates a result used for printing
(result {:status :warn :data [1 2 3 4]}) ;; #result{:status :warn, :data [1 2 3 4]} => hara.core.base.result.Result
creates a result used for printing
(result {:status :warn :data [1 2 3 4]})
;; #result{:status :warn, :data [1 2 3 4]}
=> hara.core.base.result.Result(result? obj)checks if an object is a result
(-> (result {:status :warn :data [1 2 3 4]}) result?) => true
checks if an object is a result
(-> (result {:status :warn :data [1 2 3 4]})
result?)
=> truecljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |