CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 17:38:31 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=1746c06eeab2fa954b65a7b705d9805665ae13c5fcb4cba4e67f09d6637a8fb2a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22zQqqTnYhU9xKP2TcEk8kFbYDnHXJKH2P%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d021afbc65a45e-BLR
package src.main.scala.createSQLPackageimport cats._import cats.Applicativ - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package src.main.scala.createSQLPackage
- import cats._
- import cats.Applicative._
- import cats.syntax.all._
- import cats.syntax.functor._
- import cats.syntax.applicative._
- import cats.effect.{IO, Fiber} //OK
- import cats.effect.kernel.Outcome //OK
- import cats.kernel.Monoid
- import cats.effect.syntax.all._
- import cats.syntax.all._ //OK
- import cats.Applicative //OK
- import cats.kernel.Semigroup //OK
- import cats.kernel.Monoid //OK
- //import cats.effect.IO;
- import src.main.scala.computeMD5Package;
- import cats.effect.unsafe.implicits.global
- object createSQL {
- def setSQL(listaFibers : List[IO[Fiber[IO, Throwable, String]]],
- timeMarkFiber : IO[Fiber[IO, Throwable, String]],
- volume : IO[Int]) : IO[String] = {
- val dummyIOstring : IO[String] = IO("");
- //Sviluppo alcuni test
- val listaTest : List[IO[String]] = List.empty[IO[String]] :+ IO("Primo") :+ IO("Secondo") :+ IO("Terzo");
- val testTrasformazione : IO[String] => IO[String] = item => item;
- val listaOut : IO[List[String]] = listaTest.traverse(testTrasformazione);
- //Ciò che devo fare ora, è trovare una funzione che faccia questa trasformazione:
- //IO[List[String]] => IO[String]
- def concatenaSQLstring(lista : List[String]) : String = {
- val dummyOut : String = "dummyOutput";
- return dummyOut;
- }
- val concatenaSQLstringValue : List[String] => String = item => concatenaSQLstring(item);
- val outApplicative : IO[List[String] => String] = IO(concatenaSQLstringValue);
- //val outSQLString : IO[String] = listaOut.ap(outApplicative);
- val outSQLString : IO[String] = cats.Applicative.ap(outApplicative)(listaOut); //<- QUI SOLLEVA ERRORE
- val listaTest2 : List[String] = List.empty[String] :+ "Uno" :+ "Due" :+ "Tre";
- val foldOut = listaTest2.foldLeft(Monoid.empty[String])((accumulatore : String,
- iteratore : String) => {
- accumulatore.
- combine("-").
- combine(iteratore)
- }
- );
- println("Sono nella create string. la foldOut vale: " + foldOut.toString);
- return dummyIOstring;
- }//Chiude la def setSQL
- }//Chiude la object createSQL
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Trading Profit Method ✅ NEVER SEEN BEFORE...
JavaScript | 5 sec ago | 0.24 KB
-
⭐ Instant BTC Profit Method ✅ NEVER SEEN BEFO...
JavaScript | 14 sec ago | 0.24 KB
-
⭐⭐⭐ChangeNOW Exploit⭐⭐
Java | 22 sec ago | 0.10 KB
-
⭐✅ MAKE $2000 INSTANTLY ✅ NEVER SEEN BEFORE ⭐...
JavaScript | 23 sec ago | 0.24 KB
-
⭐ Free Crypto Method ✅ NEVER SEEN BEFORE ⭐⭐⭐
JavaScript | 32 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ✅ NEVER SEEN...
JavaScript | 41 sec ago | 0.24 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 50 sec ago | 0.24 KB
-
✅⭐ Make $2500 in 15 minutes ✅ NEVER SEEN BEFO...
JavaScript | 59 sec ago | 0.24 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