Skip to content

Instantly share code, notes, and snippets.

View cnh's full-sized avatar
💊
lets use ml to fight disease, especially cancer

tp53 cnh

💊
lets use ml to fight disease, especially cancer
View GitHub Profile
@dexterous
dexterous / truth.clj
Last active January 6, 2016 21:30
The truth about dynlangs
#!/usr/bin/env lein-exec
(println (group-by (fn [e] (if e true false)) [true, false, -1, 0, 1, 2, nil, (new Object), [], #{}, '(), [(new Object)], {}, {:foo, (new Object)}]))
;;{true [true -1 0 1 2 #<Object java.lang.Object@4d8ce14a> [] #{} () [#<Object java.lang.Object@48ff4cf>] {} {:foo #<Object java.lang.Object@7114460>}], false [false nil]}
# This file is part of pylastfp.
# Copyright 2010, Adrian Sampson.
#
# pylastfp is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# pylastfp is distributed in the hope that it will be useful,