We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3aa9e7 commit 0ecbcfcCopy full SHA for 0ecbcfc
examples/filter.janet
@@ -2,8 +2,6 @@
2
3
(filter |(> (length $) 3) ["hello" "goodbye" "hi"]) # -> @["hello" "goodbye"]
4
5
-(filter |(< 65 $) "foo01bar") # -> @[102 111 111 98 97 114]
+(filter |(< (chr "A") $) "foo01bar") # -> @[102 111 111 98 97 114]
6
7
-(string/join
8
- (map string/from-bytes
9
- (filter |(< "A" (string/from-bytes $)) "foo01bar"))) # -> "foobar"
+(string/from-bytes ;(filter |(< (chr "A") $) "foo01bar")) # -> "foobar"
0 commit comments