FSharpPlus


List Module

Functions and values

Function or value Description

List._item i f t

Full Usage: List._item i f t

Parameters:
    i : int
    f : 'a option -> ^b
    t : 'a list

Returns: 'c
Modifiers: inline

Given a specific key, produces a Lens from a List to an Option. When setting, a Some(value) will insert or replace the value into the list at the given index. Setting a value of None will delete the value at the specified index. Works well together with non.

i : int
f : 'a option -> ^b
t : 'a list
Returns: 'c