1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-18 00:05:13 +00:00

doc for identity

This function only takes one argument anyway, and errors if you try to pass more.
This commit is contained in:
John Gabriele
2020-11-28 14:35:17 -05:00
committed by GitHub
parent 7c8f5ef811
commit 1b8928a8ec

View File

@@ -692,7 +692,7 @@
;(tuple/slice functions 4 -1))))) ;(tuple/slice functions 4 -1)))))
(defn identity (defn identity
"A function that returns its first argument." "A function that returns its argument."
[x] [x]
x) x)