Functor and Applicative Functor Usage in Typescript

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

Link: https://portal.sinteza.singidunum.ac.rs/paper/916

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:

Preuzimanje 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}
}
RefWorks Tagged format
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
Unapred formatirani prikaz citata
M. Matović and M. Segedinac, Functor and Applicative Functor Usage in Typescript, Univerzitet Singidunum, Beograd, 2023, doi:10.15308/Sinteza-2023-116-123