CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 00:55:01 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=6761894586b56bf92c915eed88f65f5b6bdf250ec5cc16b4a81bfeb3307adaf1a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22mWU2sFM_d04ZWPf0_1IhYuA2CEi-LFOH%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d2a1177a5b999b-BLR
car.erl - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -module(car).
- -export([listPrices/1]).
- listPrices(Currency) ->
- Cars = ["BMW i8", "Laborghini Huracan", "Ferrari f12"],
- Prices = #{"BMW i8" => 150000, "Laborghini Huracan" => 500000, "Ferrari f12" => 700000},
- case Currency of
- eur -> printCars(Cars, Prices, 0.86, Currency);
- gbp -> printCars(Cars, Prices, 0.77, Currency);
- usd -> printCars(Cars, Prices, 1, Currency)
- end.
- printCars([], Prices, CurrencyRate, Currency) ->
- Currency;
- printCars([FirstCar | Rest], Prices, CurrencyRate, Currency) ->
- printCurrency({FirstCar, maps:get(FirstCar, Prices, -1) * CurrencyRate, Currency}),
- printCars(Rest, Prices, CurrencyRate, Currency).
- printCurrency({Car, Price, Currency}) ->
- io:fwrite(Car ++ ": " ++ integer_to_list(round(Price)) ++ "\n").
Advertisement
Add Comment
Please, Sign In to add comment
-
📌 Swapzone +37% glitch ⭐ 6
JavaScript | 1 sec ago | 0.25 KB
-
📝 MAKE $2500 IN 15 MIN ✅ Working
JavaScript | 4 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ⭐⭐ C
JavaScript | 10 sec ago | 0.25 KB
-
💵 Make 3000$ in 20 minutes 💵
JavaScript | 13 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 3
JavaScript | 17 sec ago | 0.25 KB
-
📌 Swapzone +37% glitch
JavaScript | 22 sec ago | 0.24 KB
-
⭐⭐⭐Crypto Accounts⭐⭐
Java | 23 sec ago | 0.10 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ G
JavaScript | 26 sec ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand