Skip to content

Redundant use of append/3 #20

@pmoura

Description

@pmoura

keep_past(Me):- append([eve],L,Me),examine_head(L).

As a general rule, never use append/3 when the first argument is a bound list with a fixed number of arguments. In this particular case, you can rewrite it as:

keep_past([eve| L]):- examine_head(L).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions