Devam Ediyor

Write some Software

Using Clojure programming language write:[url removed, login to view]

Counting and combining:

Write a Clojure program to count and combine sequences. For example

let v = [:a :a :a :b :b :c :c :c].

Write a function that finds the first sequence, so given v it outputs [(:a :a :a) (:b :b :c :c :c :c)]. (possibly using split-with)

Write a second function that uses the first function to break up the sequence into contiguous parts. On input of v it outputs [(:a :a :a) (:b :b) (:c :c :c :c)]. (possibly using iterate)

Write a third function to count each sequence. It uses the map function on the result of the second function so that on input of v, for example, it outputs ([:a 3] [:b 2] [:c 4]).

End result:

(program1 [:a :a :a :b :b :c :c :c])

->([:a 3] [:b 2] [:c 3])

Beceriler: Mühendislik, Java

Daha fazlasını görün: programming clojure, clojure programming language, clojure programming, using jsf end, using front end backend, java function language, combine java, using sharepoint end database, parts software, map count

İşveren Hakkında:
( 1 değerlendirme ) Westwood, United States

Proje NO: #6493188



Hi there, I have been working in Java since last 6 years and during my professional career I have done so many projects in Java. and Now I came up with new language that is Groovy extended version of Java. If you Daha fazlası

1 gün içinde 35$ USD
(2 Değerlendirme)

2 freelancer bu iş için ortalamada 30$ teklif veriyor


A proposal has not yet been provided

1 gün içinde 25$ USD
(0 Değerlendirme)