Skip to content

dropmap #13

Description

@crazymonkyyy
auto dropmap(alias F,R)(R r,int i){
	foreach(j;0..i){
		F(r.front);
		r.popFront;
	}
	return r;
}
unittest{
	iota(5).drop(1).dropmap!(a=>a.writeln)(1).map!(a=>a*200).each!writeln;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions