Skip to content

secondLastElement : List a -> a #3

Description

@renovatorruler

Create a function called secondLastElement which will take a List a and return the second to last element of the list.

λ> myButLast [1,2,3,4]
3
λ> myButLast ['a'..'z']
'y'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions