Skip to content

Instantly share code, notes, and snippets.

@rm-hull rm-hull/core-typed.cljs
Last active Dec 24, 2015

What would you like to do?
(ns typed-play.core
(:require-macros [clojure.core.typed :as ct])
(:require [clojure.core.typed :as ct]))
(ct/ann my-identity (All [x] (Fn [x -> x])))
(defn my-identity [x]
(if (number? x)
(inc x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.