Functor and Applicative Functor Usage in Typescript
Functor and Applicative Functor Usage in Typescript
Autori:
Izdanje: Sinteza 2023 - International Scientific Conference on Information Technology and Data Related Research
DOI: 10.15308/Sinteza-2023-116-123
Oblast: Information Technology
Stranice: 116-123
Apstrakt:
Leveraging functional programming concepts to make front-end application development faster and easier, with fewer bugs has been tried with pure functional programming languages such as Elm. Visible improvement in development time and application quality compared to JavaScript has been recorded. TypeScript is a multi-paradigm programming language, so it is possible to implement these concepts without switching languages. Functors and applicative functors are some of the key concepts of functional programming, useful for processing complex objects and collections of data. As TypeScript is often used to visualize lists of data retrieved from a server, functors and applicative functors could be used to process data into a format required for visualization. This paper presents theoretical explanations of the Functor and Applicative Functor concepts in category theory and provides their implementations in TypeScript, focusing on Maybe and List functors. The use cases were then shown, which demonstrate that they could be useful, especially when abstracting complex concepts, so they could be used and invoked on demand, usually with a simple command.
Ključne reči: Functional Programming, Functor, Applicative Functor, TypeScript
Priložene datoteke:
- US - SINTEZA - 2023 - RAD 17 - 116-123 ( veličina: 341,77 KB, broj pregleda: 146 )
Kategorije objave:
Radovi na konferenciji Sinteza 2023, Beograd, Srbija
Zahvaljujemo se što ste preuzeli publikaciju sa portala Singipedia.
Ukoliko želite da se prijavite za obaveštenja o sadržajima iz oblasti ove publikacije, možete nam ostaviti adresu svoje elektronske pošte.
Preuzimanje citata:
BibTeX format
RefWorks Tagged format
Unapred formatirani prikaz citata
BibTeX format
@article{article, author = {M. Matović and M. Segedinac}, title = {Functor and Applicative Functor Usage in Typescript}, journal = {Sinteza 2023 - International Scientific Conference on Information Technology and Data Related Research}, year = 2023, pages = {116-123}, doi = {10.15308/Sinteza-2023-116-123} }
RT Conference Proceedings A1 Matija Matović A1 Milan Segedinac T1 Functor and Applicative Functor Usage in Typescript AD Univerzitet Singidunum, Beograd, Beograd, Srbija YR 2023 NO doi: 10.15308/Sinteza-2023-116-123
M. Matović and M. Segedinac, Functor and Applicative Functor Usage in Typescript, Univerzitet Singidunum, Beograd, 2023, doi:10.15308/Sinteza-2023-116-123