SkillAgentSearch skills...

FsLSA

An F# polymorphic, unqualified-accessible set of functions for List, Seq, and Array.

Install / Use

/learn @SchlenkR/FsLSA
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

FsLSA

FsLSA is a library that provides polymorphic and unqualified access to common functions of List, Seq and Array.

#r "FsLSA.dll"

open FsLSA

let add1 = (+) 1

[ 1..5 ] |> map add1 |> reduce (+)

[| 1..5 |] |> map add1 |> reduce (+)

seq { 1;2;3 } |> map add1 |> reduce (+)

Current Status

Initial and completely untested.

A Word on Unqualified Access

For good reasons, the F# Core modules for List, Seq, and Array require qualified access, and it is best practice to use these modules explicitly in production code instead of the FsLSA functions.

TODO

  • Use partially intersected functions instead of fully intersected List, Array, and Seq functions.
  • Include Option module (and maybe others).
View on GitHub
GitHub Stars12
CategoryDevelopment
Updated3y ago
Forks0

Languages

F#

Security Score

75/100

Audited on Jun 14, 2022

No findings