Hi Alexander, The partition function is the tool you're looking for to help create the windows in your example.
http://grimoire.arrdem.com/1.6.0/clojure.core/partition/ I made a comment on your gist that shows how it would be used in your example. Scott Nielsen On Aug 2, 2014, at 12:03 PM, Alexandr M. <alexandr.v.mas...@gmail.com> wrote: > Hello everyone, > > I have started learning Clojure recently. > > Could you please point me out what is the best way to replicate the next > Python script in Clojure: > https://gist.github.com/alexvmblog/a3e3bfffa732ca3d3738#file-seqprocess-py > > Quite frequently I have this kind of tasks when it's needed to process the > data in a sequential manner > when we have two or more sliding windows within which various statistics are > calculated and further decision are taken. > > --- > Alexander > > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.