Closed primo-ppcg closed 11 months ago
Various tests didn't turn up anything here :+1:
Some manual trials:
$ ./build/janet
Janet 1.30.0-4cb1f616 linux/x64/gcc - '(doc)' for help
repl:1:> (lengthable? :a)
true
repl:2:> (lengthable? "a")
true
repl:3:> (lengthable? 1)
false
repl:4:> (lengthable? [:x :y])
true
repl:5:> (lengthable? (peg/compile '':a))
false
repl:6:> (lengthable? {:x 1})
true
Related: #1279
lengthable?
Check if x is a bytes, indexed, or dictionary.