This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-09
Channels
- # aws (4)
- # bangalore-clj (1)
- # beginners (94)
- # boot (19)
- # cider (42)
- # cljs-dev (21)
- # cljsrn (4)
- # clojure (142)
- # clojure-austin (10)
- # clojure-greece (25)
- # clojure-italy (14)
- # clojure-russia (14)
- # clojure-serbia (13)
- # clojure-sg (6)
- # clojure-spec (74)
- # clojure-uk (69)
- # clojurescript (236)
- # consulting (1)
- # cursive (26)
- # data-science (6)
- # datascript (2)
- # datomic (31)
- # editors (5)
- # emacs (24)
- # funcool (5)
- # hoplon (8)
- # jobs-rus (1)
- # luminus (12)
- # lumo (17)
- # off-topic (90)
- # om (45)
- # onyx (5)
- # pedestal (2)
- # powderkeg (12)
- # protorepl (2)
- # re-frame (30)
- # remote-jobs (2)
- # ring-swagger (17)
- # rum (46)
- # slack-help (1)
- # test-check (2)
- # yada (62)
Una soluzione non particolarmente robusta: (map first (reductions #(split-at %2 (last %1)) [[] coll] (conj ats (last ats))))
@bronsa da quel che ho capito io, il primo vettore detta le "regole" per lo split: [1 2 3] -> splitta per 1, per 2 e il resto per 3
magari mi sbaglio
assumo che se fosse stato (split-at-multiple [1 2 3] [1 2 3 4 5 6 7 8 9 10])
il risultato sarebbe [(1) (2 3) (4 5 6) (7 8 9 10)]
quindi?