mvpa2.mappers.fx.merge2first

mvpa2.mappers.fx.merge2first(attrs)

Compress a sequence by discard all but the first element

This function can be useful as ‘attrfx’ argument for an FxMapper.

Parameters:attrs : sequence, arbitrary
Returns:First element of the input sequence. :