Enhancement #7639

elemIndex list function for Prelude

Added by Tuukka Lehtonen about 1 month ago. Updated about 1 month ago.

Status:ClosedStart date:2017-11-23
Priority:4Due date:2017-11-23
Assignee:Tuukka Lehtonen% Done:

100%

Category:-Spent time:-
Target version:2017-27
Release notes:Added function @elemIndex :: a -> [a] -> Maybe Integer@ to SCL Prelude.
Tags: scl, prelude, 1.31.0
Story points-
Velocity based estimate-
ReleaseSimantics 1.31.0Release relationshipAuto

Description

elemIndex el lst returns the index of the first element in the given list lst which is equal (by ==) to the query element, or Nothing if there is no such element.

elemIndex :: a -> [a] -> Maybe Integer

Associated revisions

Revision 46ea0d71
Added by Tuukka Lehtonen about 1 month ago

Added function elemIndex to SCL Prelude

refs #7639

Change-Id: I927c447e0e5a1d6102172c8d99f36c4a79e9138a

History

#1 Updated by Tuukka Lehtonen about 1 month ago

  • % Done changed from 0 to 100
  • Release notes set to Added function @elemIndex :: a -> [a] -> Maybe Integer@ to SCL Prelude.

#3 Updated by Tuukka Lehtonen about 1 month ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF