These are chat archives for ramda/ramda

11th
Apr 2018
Jin
@Justin-ZS
Apr 11 2018 01:53
map
Mike Lambert
@lax4mike
Apr 11 2018 13:59
Ok, so we like sheep. That's all. It's a short name, not already taken. It could as easily have been eweda, but then we would be forced to say eweda lamb!, and no one wants that. For non-English speakers, lambs are baby sheep, ewes are female sheep, and rams are male sheep. So perhaps ramda is a grown-up lambda... but probably not.
what is eweda lamb! ?
Brad Compton (he/him)
@Bradcomp
Apr 11 2018 15:23
If you say it with gusto it sounds kinda like 'You da MAN!'
Mike Lambert
@lax4mike
Apr 11 2018 15:24
haha! :thumbsup:
Jorge Colon
@2upmedia
Apr 11 2018 20:27
vm.firstErrorKey = pipe(
      mapObjIndexed(
        function (errorItems, errorType) {
          return pipe(
            filter(function (input) {
              return input.$touched && input.$valid === false; // invalid fields only
            }),
            project(['$name']),
            map(assoc('errorType', errorType)) // add errorType
          )(errorItems);
        }
      ),
      Object.values, // turn error object to array
      flatten,
      head, // only get the first one
      prop('$name')
    );
Is there a way to simplify this without losing clarity?
pdkn
@pdkn
Apr 11 2018 20:42
noob trying to find Ramda way to do padStart? any hints?