Viewing a response to: @reggaemuffin/introducing-the-coding-challenge
Hi, a quick example in clojure ``` (map #(cond (zero? (rem % 15)) "FizzBuzz" (zero? (rem % 3)) "Fizz" (zero? (rem % 5)) "Buzz" :else %) (range 0 101)) ``` Output: ``` ("FizzBuzz" 1 2 "Fizz" 4 "Buzz" "Fizz" 7 8 "Fizz" "Buzz" 11 "Fizz" 13 14 "FizzBuzz" 16 17 "Fizz" 19 "Buzz" "Fizz" 22 23 "Fizz" "Buzz" 26 "Fizz" 28 29 "FizzBuzz" 31 32 "Fizz" 34 "Buzz" "Fizz" 37 38 "Fizz" "Buzz" 41 "Fizz" 43 44 "FizzBuzz" 46 47 "Fizz" 49 "Buzz" "Fizz" 52 53 "Fizz" "Buzz" 56 "Fizz" 58 59 "FizzBuzz" 61 62 "Fizz" 64 "Buzz" "Fizz" 67 68 "Fizz" "Buzz" 71 "Fizz" 73 74 "FizzBuzz" 76 77 "Fizz" 79 "Buzz" "Fizz" 82 83 "Fizz" "Buzz" 86 "Fizz" 88 89 "FizzBuzz" 91 92 "Fizz" 94 "Buzz" "Fizz" 97 98 "Fizz" "Buzz") ```
author | lavokad |
---|---|
permlink | re-reggaemuffin-introducing-the-coding-challenge-20170818t165825769z |
category | coding-challenge |
json_metadata | {"tags":["coding-challenge"],"app":"steemit/0.1"} |
created | 2017-08-18 16:58:27 |
last_update | 2017-08-18 16:58:27 |
depth | 1 |
children | 2 |
last_payout | 2017-08-25 16:58:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 729 |
author_reputation | 3,393,470,987 |
root_title | "Introducing the Coding Challenge" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 12,191,308 |
net_rshares | 1,160,635,170 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
maramed | 0 | 1,160,635,170 | 100% | ||
lavokad | 0 | 0 | 0% |
lisp! What a brilliant, old and unique language :) Hope to find free time and learn it well one day :P
author | maramed |
---|---|
permlink | re-lavokad-re-reggaemuffin-introducing-the-coding-challenge-20170818t195227804z |
category | coding-challenge |
json_metadata | {"tags":["coding-challenge"],"app":"steemit/0.1"} |
created | 2017-08-18 19:52:33 |
last_update | 2017-08-18 19:52:33 |
depth | 2 |
children | 1 |
last_payout | 2017-08-25 19:52:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 102 |
author_reputation | 29,004,247,491 |
root_title | "Introducing the Coding Challenge" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 12,204,384 |
net_rshares | 1,149,028,729 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
lavokad | 0 | 1,149,028,729 | 100% |
:P true. You will, i'm sure about that
author | lavokad |
---|---|
permlink | re-maramed-re-lavokad-re-reggaemuffin-introducing-the-coding-challenge-20170818t195438009z |
category | coding-challenge |
json_metadata | {"tags":["coding-challenge"],"app":"steemit/0.1"} |
created | 2017-08-18 19:54:39 |
last_update | 2017-08-18 19:54:39 |
depth | 3 |
children | 0 |
last_payout | 2017-08-25 19:54:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 38 |
author_reputation | 3,393,470,987 |
root_title | "Introducing the Coding Challenge" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 12,204,537 |
net_rshares | 0 |