JanetDocsPlaygroundI'm feeling luckyGitHub sign in

->>



    macro
    boot.janet on line 1131, column 1

    (->> x & forms)

    Threading macro. Inserts x as the last value in the first form in 
    forms, and inserts the modified first form into the second form in 
    the same manner, and so on. Useful for expressing pipelines of 
    data.


2 examplesSign in to add an example
Loading...
(->> 
  (string/split " " "this  is an  example yes, an example")
  (filter (complement empty?))
  (frequencies))
# -> @{"is" 1 "example" 2 "yes," 1 "an" 2 "this" 1}

# same as:
(frequencies
  (filter
    (complement empty?)
    (string/split " " "this  is an  example yes, an example")))
felixrPlayground
(->  1 (< 2))   # -> true
(->> 1 (< 2))   # -> false
cellularmitosisPlayground