fix: remove broken file (#1194)

This commit is contained in:
Veit Heller 2021-04-01 09:44:03 +02:00 committed by GitHub
parent 3c575efe01
commit d6f40b8570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +0,0 @@
(definterface unsafe-nth (Fn [(Ref (a b) c) Int] &b))
(implements unsafe-nth Array.unsafe-nth)
(implements unsafe-nth StaticArray.unsafe-nth)
(definterface length (Fn [(Ref (a b))] Int))
(implements unsafe-nth Array.length)
(implements unsafe-nth StaticArray.length)
(defmodule Collections
(defn empty? [a]
(= 0 (length a)))
(defn first [a]
(if (empty? a)
(Maybe.Nothing)
(Maybe.Just @(unsafe-nth a 0))))
)